import * as earthstar from "https://deno.land/x/earthstar@v10.0.0-alpha.2/src/syncer/syncer_types.ts";
Interfaces
Provides a syncer with the means to connect the peer being synced with (the partner). | |
A compressed description of a group of docs a sync agent possesses | |
Options to initialise a Syncer with.
|
Type Aliases
Describes a group of docs under a common path which a syncing replica possesses. | |
A mode describing whether the HaveEntryKeeper should process only existing docs, or also live ones. | |
An event with an Earthstar document and corresponding ID. | |
A type of message one SyncAgent can send to another. | |
An event sent when a SyncAgent doesn't want anything anymore, though it'll still serve HAVE requests. | |
A hash of a replica's entire store of documents, used to quickly check equivalence. | |
Options used for initialisng a
| |
The current status of a SyncAgent
| |
Signals that a SyncAgent wants a document/documents from another SyncAgent | |
An event for disclosing which shares a Peer has without actually revealing them. Another peer can use the salt to hash their own shares' addresses and see if they match. | |
An event a Syncer can send or receive. | |
A mode which determines when the syncer will stop syncing.
| |
A map of sync statuses by the share address they're associated with. | |
A SyncAgentEvent addressed to a specific share address. |