Pow v0.1.0-alpha.4 Pow.Config View Source

Methods to parse and modify configurations.

Link to this section Summary

Functions

Gets the key value from the configuration

Merges two configurations

Puts a new key value to the configuration

Raise a ConfigError exception

Link to this section Types

Link to this section Functions

Link to this function get(config, key, default) View Source
get(t(), atom(), any()) :: any()

Gets the key value from the configuration.

If not found, it’ll fallback to environment config, and lastly to the default value.

Link to this function merge(l_config, r_config) View Source
merge(t(), t()) :: t()

Merges two configurations.

Link to this function put(config, key, value) View Source
put(t(), atom(), any()) :: t()

Puts a new key value to the configuration.

Link to this function raise_error(message) View Source
raise_error(binary()) :: no_return()

Raise a ConfigError exception.