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.

This module is to be used directly only for the read-only env init parameters, do not use it for the scenarios/helpers configuration, the amoc_config module must be used instead! This allows to provide configuration via REST API in a JSON format

See also: amoc_config.

Summary

Callbacks

-callback parse_value(string()) -> {ok, amoc_config:value()} | {error, any()}.

Functions