View Source Assent.Config (Assent v0.2.10)

Methods to handle configurations.

Summary

Types

Functions

@spec fetch(t(), atom()) :: {:ok, any()} | {:error, Assent.Config.MissingKeyError.t()}

Fetches the key value from the configuration.

Link to this function

get(config, key, default)

View Source

See Keyword.get/3.

@spec json_library(t()) :: module()

Fetches the JSON library in config.

If not found in provided config, this will attempt to load the JSON library from global application environment for :assent. Defaults to Jason.

Link to this function

merge(config_a, config_b)

View Source

See Keyword.merge/2.

See Keyword.put/3.