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

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

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

Link to this section Summary

Link to this section 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()}

Link to this section Functions