Skogsrå v2.2.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.

Link to this function

get_env(module, env)

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

Link to this section Callbacks

Link to this callback

get_env(env, config)

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

Callback for getting an environment variable.

Link to this callback

init(env)

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

Callback for initializing binding.