Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/src/wgps/data/payload_ingester.ts>PayloadIngester

Exploring Willow in the most efficient and sound programming language
Go to Latest
class PayloadIngester
import { PayloadIngester } from "https://deno.land/x/willow@0.2.1/src/wgps/data/payload_ingester.ts";

Constructors

new
PayloadIngester(opts: { getStore: GetStoreFn<Prefingerprint, Fingerprint, AuthorisationToken, AuthorisationOpts, NamespaceId, SubspaceId, PayloadDigest>; processReceivedPayload: (bytes: Uint8Array, entryLength: bigint) => Uint8Array; })

Type Parameters

Prefingerprint
Fingerprint
AuthorisationToken
NamespaceId
SubspaceId
PayloadDigest
AuthorisationOpts

Properties

private
currentEntry: Entry<NamespaceId, SubspaceId, PayloadDigest> | undefined
private
currentIngestion: FIFO<Uint8Array | CANCELLATION>
private
currentlyReceivedLength: bigint
private
entryToRequestPayloadFor: Entry<NamespaceId, SubspaceId, PayloadDigest> | null
private
events: FIFO<Uint8Array | { entry: Entry<NamespaceId, SubspaceId, PayloadDigest>; } | CANCELLATION>
private
processReceivedPayload: (bytes: Uint8Array, entryLength: bigint) => Uint8Array

Methods

push(bytes: Uint8Array, end: boolean)
target(entry: Entry<NamespaceId, SubspaceId, PayloadDigest>, requestIfImmediatelyTerminated?: boolean)