envex v0.1.0 Envex View Source

Link to this section Summary

Functions

Fetches key from the default namespace config, and prepare it with _get/3

Fetches key from the default namespace config, and prepare it with _prepare_map/3

Fetches a value from the config, or from the environment if {:system, “VAR”} is provided. An optional default value can be provided if desired

Same as get/3, but returns the result as an integer. If the value cannot be converted to an integer, the default is returned instead

Same as get_integer/3, but when you have integers in the map

Same as get/3, but when you has map

Link to this section Functions

Link to this function endpoint(key, default \\ nil) View Source
endpoint(atom, term | nil) :: term

Fetches key from the default namespace config, and prepare it with _get/3.

Link to this function endpoint_map(key, default \\ nil) View Source
endpoint_map(atom, term | nil) :: Keyword.t

Fetches key from the default namespace config, and prepare it with _prepare_map/3.

Link to this function get(key, app \\ :envex, default \\ nil) View Source
get(atom, atom, term | nil) :: term

Fetches a value from the config, or from the environment if {:system, “VAR”} is provided. An optional default value can be provided if desired.

Link to this function integer(key, app \\ :envex, default \\ nil) View Source
integer(atom, atom, integer) :: integer

Same as get/3, but returns the result as an integer. If the value cannot be converted to an integer, the default is returned instead.

Link to this function integer_map(key, app \\ :envex, default \\ nil) View Source
integer_map(atom, atom, integer) :: Keyword.t

Same as get_integer/3, but when you have integers in the map.

Link to this function map(key, app \\ :envex, default \\ nil) View Source
map(atom, atom, term | nil) :: Keyword.t

Same as get/3, but when you has map.