Skip to main content

peat_mesh/sync/
mod.rs

1//! Data synchronization abstraction layer
2//!
3//! This module provides a unified interface for CRDT-based data synchronization,
4//! enabling the mesh to work with multiple sync engines without changing
5//! business logic.
6//!
7//! ## Core Traits
8//!
9//! 1. **`DocumentStore`** - CRUD operations, queries, and live observers
10//! 2. **`PeerDiscovery`** - Finding and connecting to other nodes
11//! 3. **`SyncEngine`** - Controlling synchronization behavior
12//! 4. **`DataSyncBackend`** - Lifecycle management and trait composition
13
14pub mod in_memory;
15pub mod traits;
16pub mod types;
17
18// Re-export core types and traits for convenience
19pub use in_memory::InMemoryBackend;
20pub use traits::*;
21pub use types::*;