Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/src/syncer/transfer_manager.ts>TransferManager

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

Type Parameters

FormatsType
IncomingAttachmentSourceType

Properties

private
expectedTransferPromises: Map<string, Deferred<void>>
private
formats: FormatsArg<FormatsType>
private
formatsLookup: Record<string, FormatArg<FormatsType>>
private
madeAllAttachmentRequestsEnroller: PromiseEnroller
private
otherSyncerId
private
queue: TransferQueue
private
receivedAllExpectedTransfersEnroller: PromiseEnroller
private
reportDidUpdateBus: BlockingBus<Record<string, AttachmentTransferReport[]>>

Methods

private
queueTransfer(transfer: AttachmentTransfer<unknown>)
handleDownload(doc: FormatDocType<FormatsType>, replica: Replica): Promise<boolean>
handleTransferRequest(unnamed 0: { replica: Replica; formatName: string; path: Path; author: AuthorAddress; source: IncomingAttachmentSourceType; kind: "upload" | "download"; })
handleUpload(transferOpts: Omit<GetTransferOpts, "syncerId">, replica: Replica): Promise<boolean>
onReportUpdate(cb: () => void)