Liking cljdoc? Tell your friends :D

d-core.core.messaging.dead-letter.metadata

Helpers for enriching envelopes with standardized DLQ metadata.

The canonical location for DLQ state is:

  • [:metadata :dlq]

This metadata is designed to be portable across sinks (logger/storage/producer) and across replay mechanisms.

Helpers for enriching envelopes with standardized DLQ metadata.

The canonical location for DLQ state is:
- `[:metadata :dlq]`

This metadata is designed to be portable across sinks (logger/storage/producer)
and across replay mechanisms.
raw docstring

enrich-for-deadletterclj

(enrich-for-deadletter envelope ctx)

Adds/updates DLQ metadata on envelope.

Adds/updates DLQ metadata on `envelope`.
raw docstring

ensure-envelopeclj

(ensure-envelope x)

Coerces x into an envelope-ish map if it isn't already one.

Coerces `x` into an envelope-ish map if it isn't already one.
raw docstring

payload-hashclj

(payload-hash envelope raw-payload)

Computes a stable payload hash for DLQ identification/deduplication.

Computes a stable payload hash for DLQ identification/deduplication.
raw docstring

raw-payload-metaclj

(raw-payload-meta payload)

Returns a portable representation for a raw payload.

  • bytes -> {:format :bytes-base64 :data <string>}
  • string -> {:format :string :data <string>}
  • nil -> nil
Returns a portable representation for a raw payload.

- bytes  -> {:format :bytes-base64 :data <string>}
- string -> {:format :string :data <string>}
- nil    -> nil
raw 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