envex v0.1.2 Envex View Source

Link to this section Summary

Functions

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

Same as boolean/3, but when you have boolean values in the map

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 integer/3, but when you have integer values in the map

Same as get/3, but when you has map

Link to this section Functions

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

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

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

Same as boolean/3, but when you have boolean values in the map.

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 | term, 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 | term, atom, integer) :: Keyword.t

Same as integer/3, but when you have integer values 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.