View Source Hush.Transformer behaviour (hush v1.2.0)

Hush relies on transformers to post process values after resolving them.

You can read here on how to write your own transformer.

Summary

Callbacks

@callback key() :: atom()
Link to this callback

transform(config, value)

View Source
@callback transform(config :: any(), value :: any()) ::
  {:ok, any()} | {:error, atom() | String.t()}

Functions