Skip to main content

Module doc

Module doc 

Source
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§

BlobMeta
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.
VersionToken
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.
ImportOutcome
What happened to the changes in an imported blob.
RemoteImport
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.