aetelier_connect::workers::output
Pluggable output sinks for worker event delivery.
Pluggable output sinks for worker event delivery.
The OutputSink trait defines the interface that both DataWorker and
MarketWorker use to emit data. Multiple sinks can be active
simultaneously via OutputSinkSet, which fans out every call.
Implemented sinks
| Sink |
Status |
Description |
ChannelSink |
Working |
Wraps existing TopicRegistry broadcast channels |
TerminalSink |
Stub |
Debug/tracing terminal output |
ParquetSink |
Working |
Buffers MarketSnapshots, decomposes and flushes to per-datatype Parquet files |
Adding a new sink
- Implement
OutputSink for your type.
- Add a variant to
OutputSinkConfig in config::workers::common.
- Handle the new variant in
build_sinks().
Skeleton API reference
This page lists the public items in aetelier_connect::workers::output with a
one-line summary each. Signatures and source live in the SDK
repository.
Structs
| Item |
Summary |
BufferedSink |
Buffers MarketSnapshots in memory and delegates persistence to an injected SnapshotFlusher on OutputSink::flush. |
BufferedSinkFlushEvent |
Event emitted by BufferedSink after each successful flush. |
ChannelSink |
Publishes raw events to broadcast channels via TopicRegistry. |
FlushReport |
Report returned by a SnapshotFlusher after a successful flush. |
OutputSinkSet |
Fan-out wrapper that delegates every call to all contained sinks. |
SinkStatus |
Snapshot of a sink's runtime status at a point in time. |
TerminalSink |
Prints events to the terminal via tracing::debug!. |
TerminalSinkRawEvent |
A raw terminal sink event forwarded to the dashboard. |
Enums
| Item |
Summary |
SinkState |
Runtime operational state of an output sink. |
Traits
| Item |
Summary |
OutputSink |
A destination for worker output. |
SnapshotFlusher |
Trait for flushing buffered MarketSnapshots to persistent storage. |
Functions
| Item |
Summary |
build_sinks |
Build an OutputSinkSet from config entries. |
Type aliases
| Item |
Summary |
BufferedSinkFlushCallback |
Callback type for forwarding buffered sink (Parquet) flush events. |
TerminalEventCallback |
Callback type for forwarding terminal sink events. |