Skogsrå v2.3.3 Skogsra.Binding behaviour View Source

Variable binding behaviour.

Link to this section Summary

Callbacks

Callback for getting an environment variable.

Callback for initializing binding.

Link to this section Functions

Uses the Skogsra.Binding behaviour.

Specs

get_env(Skogsra.Env.binding(), env :: Skogsra.Env.t()) :: term()

Link to this section Callbacks

Specs

get_env(env :: Skogsra.Env.t(), config :: term()) ::
  {:ok, term()} | {:error, term()}

Callback for getting an environment variable.

Specs

init(env :: Skogsra.Env.t()) :: {:ok, term()} | {:error, term()}

Callback for initializing binding.