cinchcli-core 0.2.0

Shared client-side primitives for Cinch (cinchcli.com): generated wire DTOs, REST/WebSocket clients, AES-256-GCM + X25519 crypto, credential storage, local SQLite store, and sync helpers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Sync layer — writer (long-lived WS) and reader (short-lived REST backfill).
//! Lockfile coordinates at most one writer per machine.

pub mod backlog_flusher;
pub mod local_pusher;
pub mod lockfile;
pub mod map;
pub mod reader;
pub mod writer;

pub use backlog_flusher::{
    enqueue_local, flush_once, format_rfc3339_millis, FlushError, FlushGate, FlushGuard,
    FlushReport, MAX_UNSYNCED,
};
pub use local_pusher::{IngestError, LocalPusher, PushOutcome};
pub use lockfile::{LockKind, Lockfile};
pub use reader::{backfill_once, BackfillBudget, BackfillError};
pub use writer::{OnConnectedCallback, OnNewClipCallback, Writer};