captain_hook v0.3.0 CaptainHook.Behaviour behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback

create_webhook_endpoint(binary, map)

Specs

create_webhook_endpoint(binary(), map()) :: WebhookEndpoint.t()
Link to this callback

delete_webhook_endpoint(arg1)

Specs

delete_webhook_endpoint(WebhookEndpoint.t()) :: WebhookEndpoint.t()
Link to this callback

get_webhook_conversation(binary, binary)

Specs

get_webhook_conversation(binary(), binary()) :: WebhookConversation.t()
Link to this callback

get_webhook_endpoint(binary, binary)

Specs

get_webhook_endpoint(binary(), binary()) :: WebhookEndpoint.t()
Link to this callback

get_webhook_endpoint!(binary, binary)

Specs

get_webhook_endpoint!(binary(), binary()) :: WebhookEndpoint.t()
Link to this callback

list_webhook_conversations(binary, arg2)

Specs

list_webhook_conversations(binary(), WebhookEndpoint.t()) :: [
  WebhookConversation.t()
]
list_webhook_conversations(binary(), {binary(), binary()}) :: [
  WebhookConversation.t()
]
Link to this callback

list_webhook_endpoints(binary)

Specs

list_webhook_endpoints(binary()) :: [WebhookEndpoint.t()]
Link to this callback

notify(binary, binary, {}, map, keyword)

Specs

notify(binary(), binary(), {atom(), binary()}, map(), keyword()) ::
  :ok | {:error, :no_webhook_endpoint_found | Ecto.Changeset.t()}
Link to this callback

update_webhook_endpoint(arg1, map)

Specs

update_webhook_endpoint(WebhookEndpoint.t(), map()) :: WebhookEndpoint.t()