Expand description
Document, collections, deltas and encoding. The replicated document: collections, commits, and encoding.
This module is the only place the CRDT engine is named. Nothing it
exports mentions an engine type, so the engine can be replaced without a
breaking change to any caller, the FFI surface, or any binding. That is
the property the whole data layer’s no-lock-in promise rests on, and it
is why loro appears in no pub signature below.
Structs§
- Blob
Meta - What a blob claims about itself, judged against one document.
- DataDoc
- A replicated document.
- Delta
- A committed change, ready to persist and (from F3) to send.
- DocStats
- Sizes and counters an owner needs to decide about compaction and caps.
- Version
Token - An opaque marker for “how much of this document I have already seen”.
Enums§
- CatchUp
- What a peer needs in order to catch up with this document.
- Import
Outcome - What happened to the changes in an imported blob.
- Remote
Import - The outcome of importing a blob that arrived from a peer.
Functions§
- blob_
end_ version - The version a blob would leave a document at, without importing it.