contextdb-server 1.0.0

Sync server for contextdb — NATS-based replication with conflict resolution
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug, thiserror::Error)]
pub enum SyncError {
    #[error("NATS error: {0}")]
    Nats(String),
    #[error("protocol error: {0}")]
    Protocol(String),
    #[error("engine error: {0}")]
    Engine(String),
    #[error("serialization error: {0}")]
    Serde(String),
    #[error("protocol version mismatch: received {received}, supported {supported}")]
    ProtocolVersionMismatch { received: u8, supported: u8 },
    #[error("chunk reassembly error: {0}")]
    ChunkError(String),
}