amoc_config_parser (amoc v4.1.1)

View Source

This module defines a behaviour to parse values as extracted from environment variables. This module implements the default parser for the amoc_config_env module

See also: amoc_config, amoc_config_env.

Summary

Functions

format(Value, _)

-spec format(any(), binary) -> binary();
            (any(), string) -> string().

parse_value(Binary)

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