AuditSink
Defined in: src/streams.ts:40
A destination. send must resolve only once the batch is durably accepted
(2xx, flushed, …) and throw otherwise — the cursor advances on resolve.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
kind |
readonly |
string |
Short kind label for the UI ("http", "datadog", …). |
src/streams.ts:42 |
Methods
Section titled “Methods”close()?
Section titled “close()?”close?(): Promise<void>;Defined in: src/streams.ts:45
Optional cleanup on runner stop.
Returns
Section titled “Returns”Promise<void>
send()
Section titled “send()”send(batch): Promise<void>;Defined in: src/streams.ts:43
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
batch |
StreamBatch |
Returns
Section titled “Returns”Promise<void>