Skip to main content

Module journal

Module journal 

Source
Expand description

Node journal: persistent append-only log + C2 gap recovery.

Core never talks to nodes. When RESUME asks for a seq older than the buffer, C2 fetches missing events from the node’s journal over the uplink (JournalReq / JournalReply).

Structs§

FileJournal
On-disk journal format (per node, one file per channel or a single multiplexed file).
JournalEntry
Opaque journal entry as the node stores it for retransmission.
LocalFileJournal
Adapter: FileJournal as NodeJournal for a single node id (local / test).
MemoryJournal
In-memory journal for tests.

Enums§

JournalError

Traits§

NodeJournal
C2-side handle to ask a connected node for a journal slice.

Functions§

recover_gap
Recover events for a RESUME that falls before the in-memory buffer.