diff options
| author | tv <tv@krebsco.de> | 2026-11-16 19:33:58 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 21:24:48 +0100 |
| commit | 969767fa5270f90fb3b289177d83d6baab1cbdc2 (patch) | |
| tree | fe15d0496b2fa213b87685e4dcc3c58abf23a414 /src/document/meta.rs | |
| parent | 7f31a5bca06dccdd4edaed6699bc6e6f479a2b27 (diff) | |
document: a store swarm's genesis change, built byte for byte from its root
A swarm holding a store starts from its genesis change, which every node builds from the
store's root alike, so that one root makes one swarm (`docs/store.md`, What the document
holds). `document::events` builds it: it writes the policy naming the fold, the swarm's
ID (the root's) and the root at its ID, as bytes, each making the maps on its way, under
the writer made of the root ID's first 16 bytes, at time 0, without a message.
`is_genesis` tells such a change by building it again from the root it holds; `started`
is a document holding it, written to under a writer of its own; `ids` and `bytes` read
the events a document holds at `_continuum/events`. All of it behind the `federation`
feature.
Diffstat (limited to 'src/document/meta.rs')
| -rw-r--r-- | src/document/meta.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/document/meta.rs b/src/document/meta.rs index 3b693cf..7a9a489 100644 --- a/src/document/meta.rs +++ b/src/document/meta.rs @@ -23,6 +23,7 @@ //! * `logouts/<name>`: when a user's tokens were last revoked (`access::registry`). //! * `sessions/<name>/<session>`: a session of the user ended (logged out of), until //! when it would have lasted: its tokens aren't taken (`access::registry`). +//! * `events/<ID>`: in a swarm holding a store, its events (`document::events`). //! * `local/<pk>/<name>`: never stored, and never writable: what a node holds alone //! (its log filter, its configuration, its debug endpoints), named for capabilities //! (`api::access::needed`). @@ -45,6 +46,8 @@ pub(crate) const BANNED: &str = "banned"; pub(crate) const LOGOUTS: &str = "logouts"; pub(crate) const SESSIONS: &str = "sessions"; pub(crate) const LOCAL: &str = "local"; +#[cfg(feature = "federation")] +pub(crate) const EVENTS: &str = "events"; /// The store path `_continuum/<parts…>`. pub(crate) fn path(parts: &[&str]) -> Vec<String> { |
