Expand description
Prolly Tree sync protocol for non-git event replication.
Two replicas exchange Prolly Tree root hashes, identify divergent subtrees in O(log N), and transfer only the missing events.
The protocol is transport-agnostic: any type implementing SyncTransport
can be used (TCP, HTTP, MCP, USB drive via file exchange, etc.).
Structs§
- InMemory
Error - Error type for in-memory transport (should never happen in tests).
- InMemory
Transport - A pair of in-memory channels for testing sync without real I/O.
- Sync
InMemory Result - Result of an in-memory sync between two replicas.
- Sync
Report - Summary of a completed sync operation.
Traits§
- Sync
Transport - Abstraction over the wire protocol.
Functions§
- serve_
sync - Respond to a sync request as the remote side.
- sync
- Synchronise local events with a remote replica.
- sync_
in_ memory - Run a full sync between two event sets using in-memory transport.