inertia_phoenix v0.1.2 InertiaPhoenix.Config

Methods to parse and modify configurations.

Link to this section Summary

Functions

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.

Merges two configurations.

Puts a new key value to the configuration.

Link to this section Types

Link to this section Functions

Link to this function

get(config, key, default \\ nil)

get(t(), atom(), any()) :: any()

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

merge(l_config, r_config)

merge(t(), t()) :: t()

Merges two configurations.

Link to this function

put(config, key, value)

put(t(), atom(), any()) :: t()

Puts a new key value to the configuration.