downflux / TransferCoordinator
Defined in: packages/core/coordinators/TransferCoordinator.ts:16
Coordinates one pipeline item transfer into storage.
The transfer coordinator binds streaming and storage together. It resolves the final media URL, opens the correct sink, streams bytes, finalizes the stored media, and returns download metadata to the task coordinator.
new TransferCoordinator(
fileManager,streamHttpClient,progressManager):TransferCoordinator
Defined in: packages/core/coordinators/TransferCoordinator.ts:17
TransferCoordinator
protectedreadonlyfileManager:FileManager
Defined in: packages/core/coordinators/TransferCoordinator.ts:18
protectedreadonlystreamHttpClient:StreamHttpClient
Defined in: packages/core/coordinators/TransferCoordinator.ts:19
protectedreadonlyprogressManager:ProgressManager
Defined in: packages/core/coordinators/TransferCoordinator.ts:20
download(
item,opts):Promise<DownloadResult>
Defined in: packages/core/coordinators/TransferCoordinator.ts:30
Downloads a single pipeline item.
Pipeline item describing the media URL and identifier.
Download and output options.
Promise<DownloadResult>
Final download details including path, size, MIME type, and final URL.