SanityWebhookPlug.Handler behaviour (sanity_webhook_plug v0.1.0)
Behaviour for handling webhooks from SanityWebhookPlug
Link to this section Summary
Link to this section Types
Link to this type
error()
Link to this type
params()
@type params() :: map()
Link to this section Callbacks
Link to this callback
handle_error(t, error)
@callback handle_error(Plug.Conn.t(), error()) :: Plug.Conn.t()
Handle inauthentic or erroneous webhooks
Link to this callback
handle_event(t, params)
@callback handle_event(Plug.Conn.t(), params()) :: Plug.Conn.t()
Handle authenticity-validated webhooks