PowAssent v0.2.3 PowAssent.Config View Source
Methods to parse and modify configurations.
Link to this section Summary
Functions
Gets the key value from the configuration
Gets the provider configuration from the provided configuration
Gets the providers for the configuration
Puts a new key value to the configuration
Raise a ConfigError exception
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: Keyword.t()
t() :: Keyword.t()
Link to this section Functions
Link to this function
get(config, key, default \\ nil) View Source
Gets the key value from the configuration.
If not found, it'll fall back to environment config, and lastly to the
default value which is nil
if not specified.
Link to this function
get_provider_config(config, provider) View Source
Gets the provider configuration from the provided configuration.
Link to this function
get_providers(config) View Source
Gets the providers for the configuration.
Link to this function
put(config, key, value) View Source
Puts a new key value to the configuration.
Link to this function
raise_error(message) View Source
Raise a ConfigError exception.