Expand description
HTTP replication server.
Endpoints:
GET /merkle → MessagePack {root: Vec<u8>}
GET /segments → MessagePack [{segment_id, segment_hash}]
GET /segments/{hash_hex} → raw segment bytes (application/octet-stream)
GET /watermark → MessagePack {confirmed_lsn, wtoken}
All endpoints support ?debug=json for human inspection.
Engine access is serialized via Arc<Mutex<Engine>> — correct for single-writer.
Structs§
- Http
Replication Server - HTTP replication server wrapping an
Arc<Mutex<Engine>>.