confex v3.5.0 Confex.Adapter behaviour

This module provides behaviour for the Confex adapters, that are responsible for fetching raw values from an environment variable or other source.

By default, Confex is supplied with two adapters:

To simplify configuration syntax, Confex allows an alias for adapter names.

Link to this section Summary

Callbacks

Fetch raw configuration value

Link to this section Callbacks

Link to this callback

fetch_value(key)
fetch_value(key :: any()) :: {:ok, String.t()} | :error

Fetch raw configuration value.