Skip to content

Latest commit

 

History

History
97 lines (50 loc) · 2.81 KB

File metadata and controls

97 lines (50 loc) · 2.81 KB

downflux


downflux / TransferCoordinator

Class: TransferCoordinator

Defined in: packages/core/coordinators/TransferCoordinator.ts:16

Coordinates one pipeline item transfer into storage.

Remarks

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.

Constructors

Constructor

new TransferCoordinator(fileManager, streamHttpClient, progressManager): TransferCoordinator

Defined in: packages/core/coordinators/TransferCoordinator.ts:17

Parameters

fileManager

FileManager

streamHttpClient

StreamHttpClient

progressManager

ProgressManager

Returns

TransferCoordinator

Properties

fileManager

protected readonly fileManager: FileManager

Defined in: packages/core/coordinators/TransferCoordinator.ts:18


streamHttpClient

protected readonly streamHttpClient: StreamHttpClient

Defined in: packages/core/coordinators/TransferCoordinator.ts:19


progressManager

protected readonly progressManager: ProgressManager

Defined in: packages/core/coordinators/TransferCoordinator.ts:20

Methods

download()

download(item, opts): Promise<DownloadResult>

Defined in: packages/core/coordinators/TransferCoordinator.ts:30

Downloads a single pipeline item.

Parameters

item

PipelineItem

Pipeline item describing the media URL and identifier.

opts

DownloadOptions

Download and output options.

Returns

Promise<DownloadResult>

Final download details including path, size, MIME type, and final URL.