aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/view.rs
Commit message (Collapse)AuthorAgeFilesLines
* swarm: members read of a set's entries over the document'stv16 hours1-6/+155
| | | | | | | | What a set hands the node to read was read in the document's place; it is read over it now (view::Listed): at a path, what the set's tree holds, else what the document does, and maps of both as one. A node on a set alone reads the same as before, its document being empty; one holding its store in both, to come, reads the members of both.
* swarm: members read of where the node's document keeps themtv19 hours1-1/+16
| | | | | | | | | | | The swarm reads its members, their addresses, aliases, parties, tiers and links, at _continuum/members of the document the node holds. Where the node's document keeps them apart and hands them over as a tree (AppState::entries: a set of events, Holding::entries), they are read of that (view::members_of): by the topology, the node's registration, stability, working links, the state file's seeds, reach, and the API's aliases, dashboards and tier. No node's document does so yet but one whose store a set carries, which none starts as.
* document: a tree of JSON, read and written as any documenttv43 hours1-0/+179
| | | | | | view::Tree: maps of maps down to values, behind Read and Write. For a kind that keeps what the node reads at paths otherwise, and hands it over so.
* document: values read and written through a view any kind of document givestv2 days1-0/+118
document::view: Read (the value at a path, plain, typed, a map's keys) and Write (a value written, one deleted), which Automerge's documents, writes in progress and documents as they were all are. The member registry, the users, access control's reads and rules, the topology, forgetting and bootstrap read and write through them, and name neither Automerge's ReadDoc and Transactable nor document::store, which is what an Automerge document can do beyond. How a swarm holding a store judges what a change writes is handed to the rules (rules::judge_seen), being its kind of document's to say.