Expand description
Many links networks seen as one (issue #149): the joining layer of a client’s links with a server’s, of a cache with its source, of the networks of several services.
The members are in order, and the link at an address is the one of the
first member that has it: a member shadows the ones after it, as a local
overlay of minimongo or minilinks shadows the documents of the server.
Reads see the links of every member that are not shadowed. Members whose
addresses do not overlap (a RemapLinks with an
OffsetAddressMap moves one out of the way of
another) shadow nothing.
A new link is created in the first member, the primary one. An update, a
delete and naming go to the member that has the link, so a link stays where
it lives; the store of that member resolves the write, merges and cascades
included, which keep to that member: a doublet is unique within its member,
not across them. A link created at a given address
(ensure_created, the undo of a delete)
is created in the first member that claims the
address, as a remap claims the addresses of its map, and in the primary
member when none does.
A link may refer to links of other members: a link of the client typed by a type of the server holds the address of the server’s type. Names are found in the members in order, so a name of the primary member wins.
The union depends on no other layer. A
PermissionsDecorator over it restricts
every member at once, its rules and types coming from any of them, and one
under it restricts a single member. The C# twin is
UnionLinksDecorator<TLinkAddress>, the JavaScript one UnionLinks of
@link-foundation/link-cli-client.
Structs§
- Union
Links - Networks seen as one; see the module documentation.
Type Aliases§
- Union
Member - A member of a union: any store, owned or borrowed.