import * as earthstar from "https://deno.land/x/earthstar@v10.0.0/src/syncer/syncer_types.ts";
Interfaces
Provides a syncer with the means to connect the peer being synced with (the partner). | |
Options to initialise a Syncer with. |
Type Aliases
A short string with a timestamp and hash of the document's path and author. | |
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 special event for the implementation of a PlumTree. Asks the recipient to begin lazily messaging us. | |
An event to be passed on to a RangeMessenger | |
The current status of a SyncAgent. | |
Signals that a SyncAgent wants a document/documents from another SyncAgent | |
An 'appetite' which determines when the syncer will stop syncing.
| |
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 map of sync statuses by the share address they're associated with. | |
A SyncAgentEvent addressed to a specific share address. |