data
14 blocks in 3 groups. Open a block for its pins, an example and how it behaves.
cursors
- get cursors
objectv15.0.2A member's cursors in a group, key -> sequence: where a worker is in each queue, where a reader is in each channel. - set cursor
conditionv15.0.2Moves a member's cursor on a key forward to a sequence: the last order a worker processed in a queue, a sync client's position, a reader's last-read message in a channel. - keys past cursor
objectv15.0.2Which keys have something past a member's cursor, from a map of heads: the queues with orders a worker has not processed, the channels a reader has unread.
ordered log
- update log entry
conditionv15.0.2Changes an entry of an ordered log: set fields, remove fields; touch moves its changed sequence so catch-up carries it. An order event's note, an audit record's review, a message's edit. - log head
numberv15.0.2The newest entry of a key: its created sequence and id. An order's latest event, a channel's latest message. - log heads of a group
objectv15.0.2Every key's head sequence in a group, in one read: the latest event of each order of a shop, the latest message of each channel of a server. - log entries before
arrayv15.0.2Entries of a key created before a sequence, oldest first: paging back through an order's history or a channel's messages. - append to log
conditionv15.0.2Appends an entry to an ordered log per key: an order's status event, an audit record, a chat message. It takes the key's next sequence and is written through the storage. - log entries since
arrayv15.0.2Every entry of a key created or changed after a sequence, the newest version of each, and the ids hard-deleted since: catch-up for a sync client, a worker, or a chat client back online. - delete log entry
conditionv15.0.2Deletes an entry of an ordered log: a tombstone (set fields, changed sequence moved) or, with hard, the document itself. A cancelled order event, a redacted audit record, a removed message. - latest log entries
arrayv15.0.2The newest entries of a key, oldest first: an order's recent events, an account's last audit records, a channel's latest messages.
roles
- check role permission
conditionv15.0.2Whether a subject holds one permission under a root, at a path below it, by a role model the entity defines: may this badge holder open the door of this room, may this team member edit this project, may this member send in this channel. - role permission holders
arrayv15.0.2Every subject under a root holding a permission at a path, by a role model the entity defines: who may open the doors of this room, who may edit this project, who an announcement to a role or to everyone in a channel reaches. - resolve roles
conditionv15.0.2What a subject may do under a root, at a path below it, by a role model the entity defines: which doors a badge holder may open in a room of a building (path: building, room), what a team member may do in a project, or what a member may do in a channel of a chat server.