View Source Webhoox.Adapter behaviour (Webhoox v0.3.0)

Behaviour for handling webhooks

Summary

Callbacks

Link to this callback

handle_webhook(conn, handler, opts)

View Source
@callback handle_webhook(conn :: Plug.Conn.t(), handler :: Atom.t(), opts :: []) ::
  {:ok, conn :: Plug.Conn.t()}
  | {:ok, conn :: Plug.Conn.t(), map()}
  | {:error, conn :: Plug.Conn.t(), String.t()}
  | {:error, conn :: Plug.Conn.t(), String.t(), map()}