View Source amoc_config_env behaviour (amoc v3.3.0)
This module defines a behaviour to parse values as extracted from environment variables.
The default implementation is amoc_config_parser
, which implements Erlang parsing. This way plain strings in valid Erlang syntax can be passed by env-vars and transformed into full Erlang terms.
See also: amoc_config.
Summary
Callbacks
-callback parse_value(string()) -> {ok, amoc_config:value()} | {error, any()}.
Functions
-spec get(amoc_config:name(), amoc_config:value()) -> amoc_config:value().