Crate entidb_sync_protocol

Crate entidb_sync_protocol 

Source
Expand description

§EntiDB Sync Protocol

Sync protocol types and CBOR codecs for EntiDB.

This crate provides:

  • SyncOperation for replication records
  • ChangeFeed for 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§

ChangeEvent
A single change event from the change feed.
ChangeFeed
A change feed that emits committed operations.
Conflict
A conflict between local and remote operations.
HandshakeRequest
Handshake request from client.
HandshakeResponse
Handshake response from server.
LogicalOplog
A logical oplog for tracking operations to be synced.
OplogEntry
An entry in the logical oplog.
PullRequest
Pull request from client.
PullResponse
Pull response from server.
PushRequest
Push request from client.
PushResponse
Push response from server.
SyncOperation
A sync operation that can be replicated.

Enums§

ChangeType
Type of change event.
ConflictPolicy
Policy for automatic conflict resolution.
ConflictResolution
Resolution for a conflict.
OperationType
Type of sync operation.
SyncMessage
A sync protocol message.