Sanito.PluginBehaviour behaviour (sanito v0.1.1)

Define the features that should be implemented to have a custom plugin

Summary

Callbacks

It will receive all the options sent to Sanito.Plug

Callbacks

@callback check(Plug.Conn.t(), opts :: list()) ::
  {:ok, context :: String.t()} | {:error, reason :: String.t()}

It will receive all the options sent to Sanito.Plug