Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/syncer/syncer_manager.ts>SyncerManager

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
class SyncerManager
import { SyncerManager } from "https://deno.land/x/earthstar@v10.0.0-alpha.4/src/syncer/syncer_manager.ts";

Constructors

new
SyncerManager(peer: IPeer)

Properties

private
docThumbnailTreeAndLookup: Map<DocThumbnailTreeKey, [DocThumbnailTree, DocThumbnailHashToDocLookup]>

DocThumbnail

private
hasher: XXH64

We use this for creating doc thumbnails during tree generation.

private
plumTrees: Map<ShareAddress, PlumTree>
private
syncers: Map<string, Syncer<unknown, unknown>>

A map of syncer IDs to syncers

peer: IPeer

Methods

addPartner<I, F>(partner: ISyncPartner<I>, formats?: FormatsArg<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.