import { SyncerManager } from "https://deno.land/x/earthstar@v10.0.0/src/syncer/syncer_manager.ts";
Constructors
new
SyncerManager(peer: IPeer)Properties
private
docThumbnailTreeAndLookup: Map<DocThumbnailTreeKey, [DocThumbnailTree, DocThumbnailHashToDocLookup]>DocThumbnail
private
hasher: XXH64We use this for creating doc thumbnails during tree generation.
private
plumTrees: Map<ShareAddress, PlumTree>private
syncerEventBus: BlockingBus<Map<string, { description: string; syncer: Syncer<unknown, unknown>; }>>private
syncers: Map<string, { description: string; syncer: Syncer<unknown, unknown>; }>A map of syncer IDs to syncers
peer: IPeer
Methods
addPartner<I, F>(): Syncer<I, F>
getDocThumbnailTreeAndDocLookup<F>(share: ShareAddress, formats: FormatsArg<F>): { tree: DocThumbnailTree; lookup: DocThumbnailHashToDocLookup; treeIsReady: Promise<true>; }
Create or retrieve an existing DocThumbnailTree for use with range-based reconciliation.
getPlumTree(address: ShareAddress): PlumTree
Returns a record of syncers with their given descriptions as keys.
onSyncersChange(callback: (map: Map<string, { description: string; syncer: Syncer<unknown, unknown>; }>) => void | Promise<void>)