config v0.1.0 Config.Type behaviour
Behaviour module for defining custom configuration options types
Summary
Callbacks
Called after retrieving value from any source to convert it into internal representation before putting into application environment
Callbacks
Specs
parse(any) ::
{:ok, any} |
:ignore |
:error |
{:error, String.t}
Called after retrieving value from any source to convert it into internal representation before putting into application environment.
Return {:ok, value} on success, :ignore to skip this value silently,
:error or {:error, msg} to raise ParseError