Skip to content

OptionsType

OptionsType = object

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:110

optional cdn?: boolean

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:122


optional concurrency?: number

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:127

Maximum number of upload and pull transfers parking at the same time. Others wait for a free slot. Defaults to no limit.


dataSet: PdpDataSet | undefined

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:111


optional limiter?: Limiter

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:115

Defaults to addPiecesFits.


optional metadata?: MetadataObject

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:121


optional payee?: Address

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:119

Required when dataSet is undefined.


optional payer?: Address

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:120


optional serviceURL?: string

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:117

Required when dataSet is undefined.


optional wait?: PieceBatcherWait

Defined in: packages/synapse-core/src/sp/create-piece-batcher.ts:113

When to flush a window. Defaults to { kind: 'delay', ms: 0 }.