Documentation
¶
Overview ¶
Package codec serialises and deserialises the persistent failed-message queue using CBOR (RFC 8949) via github.com/fxamacker/cbor. Despite the historical name "encdec", no encryption is performed: the queue is stored in plaintext CBOR inside the local sqlite database. The on-disk database is operator-owned, so confidentiality is assumed at the filesystem level rather than at the payload level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrDecodePanic = errors.New("panic while decoding message queue")
ErrDecodePanic signals cbor.Decode panicked on malformed input rather than returning cleanly.
Functions ¶
func DecodeMsgs ¶
DecodeMsgs CBOR-decodes val into a message slice. A decode panic on corrupted or older-format on-disk bytes is recovered into ErrDecodePanic so a bad queue entry never crashes the daemon.
Types ¶
This section is empty.