Liking cljdoc? Tell your friends :D

wagoe.webhooks.core.delivery

Which subscriptions an event goes to, what is sent, and what an attempt's outcome means. Pure: the clock, ids and I/O come from the shell.

Which subscriptions an event goes to, what is sent, and what an attempt's
outcome means. Pure: the clock, ids and I/O come from the shell.
raw docstring

attempt-statusclj

(attempt-status {:keys [status]} attempt max-attempts)

:delivered for a 2xx, otherwise :failed, or :dead when this was the last attempt the queue will make. A redirect is a failure: it is not followed, since its target was never checked.

`:delivered` for a 2xx, otherwise `:failed`, or `:dead` when this was the
last attempt the queue will make. A redirect is a failure: it is not
followed, since its target was never checked.
sourceraw docstring

failure-messageclj

(failure-message {:keys [status error]})

What a failed attempt says about itself.

What a failed attempt says about itself.
sourceraw docstring

headersclj

(headers {:keys [event-id topic]} signature)

Request headers for one attempt.

Request headers for one attempt.
sourceraw docstring

matching-subscriptionsclj

(matching-subscriptions subscriptions topic event)

The active subscriptions in subscriptions that event on topic goes to.

The active subscriptions in `subscriptions` that `event` on `topic` goes to.
sourceraw docstring

pattern-matches?clj

(pattern-matches? pattern topic)

Whether topic glob pattern matches topic. * matches any run of characters, / included: orders/*, *.created, *.

Whether topic glob `pattern` matches `topic`. `*` matches any run of
characters, `/` included: `orders/*`, `*.created`, `*`.
sourceraw docstring

payload-bodyclj

(payload-body topic event)

The JSON body for event published on topic. Built once per event, so every attempt sends, and signs, the same bytes.

The JSON body for `event` published on `topic`. Built once per event, so
every attempt sends, and signs, the same bytes.
sourceraw docstring

tenant-allows?clj

(tenant-allows? subscription event)

A subscription with a tenant receives only that tenant's events. One without a tenant is the operator's own and receives every event.

A subscription with a tenant receives only that tenant's events. One without
a tenant is the operator's own and receives every event.
sourceraw docstring

topic-nameclj

topic as a string, namespace included, as the bus names it.

`topic` as a string, namespace included, as the bus names it.
sourceraw docstring

url-hostclj

(url-host url)

The host of url, lower case, without IPv6 brackets.

The host of `url`, lower case, without IPv6 brackets.
sourceraw docstring

url-problemclj

(url-problem url {:keys [require-https?]})

Why url cannot be a webhook target, or nil. Checks the shape only; whether the host is private is the shell's question, since it needs DNS.

Why `url` cannot be a webhook target, or nil. Checks the shape only; whether
the host is private is the shell's question, since it needs DNS.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close