Expand description
§EntiDB Sync Protocol
Sync protocol types and CBOR codecs for EntiDB.
This crate provides:
SyncOperationfor replication recordsChangeFeedfor emitting committed operations- Protocol messages (Handshake, Pull, Push)
- CBOR encoding/decoding
This is a pure protocol crate with no I/O operations.
§Key Invariants
- Change feed emits only committed operations
- Change feed preserves commit order
- Applying the same operation multiple times is idempotent
Structs§
- Change
Event - A single change event from the change feed.
- Change
Feed - A change feed that emits committed operations.
- Conflict
- A conflict between local and remote operations.
- Handshake
Request - Handshake request from client.
- Handshake
Response - Handshake response from server.
- Logical
Oplog - A logical oplog for tracking operations to be synced.
- Oplog
Entry - An entry in the logical oplog.
- Pull
Request - Pull request from client.
- Pull
Response - Pull response from server.
- Push
Request - Push request from client.
- Push
Response - Push response from server.
- Sync
Operation - A sync operation that can be replicated.
Enums§
- Change
Type - Type of change event.
- Conflict
Policy - Policy for automatic conflict resolution.
- Conflict
Resolution - Resolution for a conflict.
- Operation
Type - Type of sync operation.
- Sync
Message - A sync protocol message.