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