View Source Confex.Adapter behaviour (confex v3.5.1)

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.

Summary

Callbacks

Fetch raw configuration value.

Callbacks

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

Fetch raw configuration value.