Expand description
User state synchronized via Automerge.
Modules§
- arbitrary
- Arbitrary instances for property-based testing.
Structs§
- DocInfo
- Document reference information for user state synchronization.
- Permission
Info - A single permission entry for a document in user state.
- Relation
Info - A relationship between two documents.
- Snapshot
Info - Lightweight snapshot metadata for user state synchronization.
- User
Info - User info for user state synchronization.
- User
State - State associated with a user, synchronized via Automerge.
Enums§
- Document
Type - The type/kind of a document, without any associated content.
Constants§
- DEFAULT_
DOC_ NAME - Default name for documents without a name.
Functions§
- extract_
relations_ from_ json - Extracts document relations from a JSON content tree.
- get_
or_ create_ user_ state_ doc - Gets or creates the user state document for a given user.
- get_
user_ state_ doc - Gets the user state document ID for a given user from the database.
- initialize_
user_ state_ doc - Initializes a user state document.
- read_
user_ state_ from_ db - Reads user state from the database.
- user_
state_ to_ automerge - Converts a
UserStateinto an Automerge document.