Bardo.AppConfig (Bardo v0.1.0)

View Source

Configuration management for the Bardo application.

Summary

Functions

Get all environment variables from the default keyspace.

Get all environment variables from a specific keyspace.

Get environment variable from the default keyspace.

Get environment variable from a specific keyspace.

Get environment variable with default value.

Set environment variable in the default keyspace.

Set environment variable in a specific keyspace.

Functions

get_all()

@spec get_all() :: [{atom(), term()}]

Get all environment variables from the default keyspace.

get_all(keyspace)

@spec get_all(atom()) :: [{atom(), term()}]

Get all environment variables from a specific keyspace.

get_env(key)

@spec get_env(atom()) :: term()

Get environment variable from the default keyspace.

get_env(keyspace, key)

@spec get_env(atom(), atom()) :: term()

Get environment variable from a specific keyspace.

get_env(keyspace, key, default)

@spec get_env(atom(), atom(), term()) :: term()

Get environment variable with default value.

set_env(key, value)

@spec set_env(atom(), term()) :: :ok

Set environment variable in the default keyspace.

set_env(keyspace, key, value)

@spec set_env(atom(), atom(), term()) :: :ok

Set environment variable in a specific keyspace.