Expand description
Pulsify protocol v1. The transport/patch journal is independent of a CRDT engine.
Structs§
- Append
Result - Error
- Hub
- One writer and its sessions: each session is pinned to a document, and rows stored through one session are forwarded to the document’s other sessions.
- Last
Register - What a journal or a store reads from the head of a last-value row.
- Message
- Patch
Log - Opaque segments whose operations are immutable; the frontier advances only
when dependencies exist. A register without history keeps one row, the
newest write: see “Fields without history” in
docs/PROTOCOL.md. - Patch
Row - Relay
- Single-peer reference relay for embedding or the line-based interoperability CLI.
- Relay
Output - The frames produced by one incoming frame.
Enums§
Constants§
- GAP_
OPERATIONS - The payload of a gap row: no operation. Its sequence numbers held writes that were replaced, and it stands where no earlier row can cover them.
- MAX_
FRAME_ BYTES - MAX_
MESSAGE_ ROWS - MAX_
PATCH_ BYTES - MAX_
SAFE_ INTEGER - MAX_
SCHEMA_ NODES - MAX_
VECTOR_ ENTRIES - OPERATIONS_
VERSION - The version of operation payloads, their first byte.
Traits§
- Document
Store - Persistent lifecycle for ID-prefix subtrees. Deleted IDs can never be reused.
- Patch
Store - Rows keyed by
(doc_id, sid, clock), whose operations are immutable. Rows stay pending until their actor prefix is contiguous and their dependencies are stored. - Sink
- Delivers frames to one session. Returns
falseonce the peer is gone.
Functions§
- chunk_
rows - Mirror of
chunkRows: about 2 MiB, 4096 rows and the relay node budget per page. - covers_
document - decode
- document_
prefixes - encode
- is_gap
- last_
register_ of Noneunless the payload is one last-value write: exactly one operation of kind 7 (assign) or 8 (delete), to a register that keeps no history. Mirror oflastRegisterOf: nothing is decoded beyond the head,version, lamport, schema, count = 1, kind, target, field.- relay_
frame - Serve one protocol frame from the store, like
relayStoreMessage. Rows are committed before the acknowledgement. A frame which cannot be decoded is anErr; every other failure becomes an error frame for the peer. - validate_
doc_ id - validate_
rows - Checks the rows of one append, before any storage access. Returns their
document, or
Nonewhen there is no row. - validate_
vector