1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # meathook
//!
//! A polling runtime with composable, durable sinks: poll a source on an
//! interval, buffer samples into time windows, and ship them to long-term
//! storage — durably.
//!
//! The core (traits, sink combinators, write-ahead spool, supervised
//! runtime) is free of any HTTP/IO stack dependency: with
//! `--no-default-features` you get just that and bring your own collector
//! and terminal sink.
//!
//! The two core abstractions are:
//!
//! - [`Collector`]: produces a batch of records per tick. With the `satay`
//! feature, [`satay::SatayCollector`] adapts any
//! [satay](https://docs.rs/satay-runtime)-generated API client into a
//! collector.
//! - [`Sink`]: receives records. Sinks compose like tower layers — a
//! buffering tier ([`Buffered`]), a durable write-ahead spool
//! ([`DiskSpool`]), fan-out ([`Tee`]), and terminal sinks such as
//! [`HfSink`](sink::huggingface::HfSink) (feature `huggingface`) stack via
//! [`SinkExt`].
//!
//! Pipelines (collector + sink stack) are supervised by the [`Meathook`]
//! runtime: one tokio task each, respawn-on-panic with backoff, and a final
//! `flush()` through the whole stack on graceful shutdown.
pub
pub use Collector;
pub use ;
pub use Pipeline;
pub use ;
pub use SatayCollector;
pub use ;
pub use EncodeError;
pub use ;