Documentation
¶
Overview ¶
Package badger is the dead-letter-queue deadletter driver (ADR-0118), backed by Badger v4 in a DEDICATED instance (never the metastore). It mirrors the ADR-0094 run-state driver: one driver serves every backend — New selects Badger's in-memory mode (tests/dev, hermetic — no files) or an on-disk directory (<dataDir>/deadletter, production). Key layout is dl/<ns>/<ulid>: the ULID makes a namespace's keys time-sortable, so cap eviction takes the oldest cheaply. The store imports NO bus — the DLQ guarantee is bus-driver-independent. The shared deadletter.Contract proves memory and this driver behave identically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// InMemory runs Badger fully in memory (tests/dev) — no files, no disk.
InMemory bool
// Dir is the on-disk data directory when InMemory is false (production: <dataDir>/deadletter).
Dir string
}
Config selects the Badger backend for the DLQ (mirrors internal/workflow/runstate/badger).