@ydbjs/topic
Version:
YDB Topics client for publish-subscribe messaging. Provides at-least-once delivery, exactly-once publishing, FIFO guarantees, and scalable message processing for unstructured data.
16 lines • 647 B
TypeScript
import { type StreamWriteMessage_WriteRequest_MessageData } from "@ydbjs/api/topic";
import type { CompressionCodec } from "../codec.js";
export declare function _write(ctx: {
readonly codec: CompressionCodec;
readonly buffer: StreamWriteMessage_WriteRequest_MessageData[];
readonly inflight: StreamWriteMessage_WriteRequest_MessageData[];
readonly lastSeqNo: bigint;
updateLastSeqNo: (seqNo: bigint) => void;
updateBufferSize: (bytes: bigint) => void;
}, msg: {
data: Uint8Array;
seqNo?: bigint;
createdAt?: Date;
metadataItems?: Record<string, Uint8Array>;
}): bigint;
//# sourceMappingURL=_write.d.ts.map