Skip to main content

Module id_source

Module id_source 

Source
Expand description

New ids, including each install’s 64-bit device id (§10).

Structs§

CircleId
A circle’s identity, independent of its name or current key (§15.5).
DeviceId
One install of the app, by its 64-bit device id (§10).
FileId
A file record’s identity, independent of its content and of where its bytes are stored (§17.2). coven takes it from the id source when the app stages the file, or when a write moves a row that names a file to another audience and gives it a new file there.
InvalidMemberId
Text that is not a member id’s canonical lowercase hyphenated UUID (D10).
InviteId
An invitation’s identity, independent of its one-time secret (§13.2).
KeyId
A store or circle key’s identity, named by the entry introducing it (§12.1).
MemberId
A member’s identity, independent of their keys, which never changes (§10). coven takes it from the id source when the first device creates the store or an admin makes the invite that admits the member. Device ownership, circle membership and slot authors name it; a key replacement keeps it.
NotCanonicalUuid
Text that is not a UUID’s canonical lowercase hyphenated spelling (D10).
ObjectId
A stored object’s id, the last part of its path <store>/files/<uploader>/<object> (§17.5). coven takes it from the id source when a write queues the upload of bytes this device holds.
SequentialIds
A deterministic sequence of UUIDs and device ids, starting at one.
StoreId
A store’s identity, independent of its name and location on disk.
UuidIds
Random UUIDv4 ids, independent of the clock (E1).

Traits§

IdSource
The source of new ids, supplied when creating or opening a store.

Functions§

canonical_uuid
The UUID text spells in its one canonical form, lowercase and hyphenated (D10). Any other spelling of the same UUID names nothing.

Type Aliases§

IdSourceRef
A shared source of new ids.