Skip to main content

pyra_streams/
lib.rs

1#![doc = "Redis Stream consumer infrastructure for Pyra services."]
2#![doc = ""]
3#![doc = "Provides a generic `StreamConsumer<H>` that handles XREADGROUP, XACK, XCLAIM,"]
4#![doc = "dead-lettering, and graceful shutdown. Services implement the `StreamHandler`"]
5#![doc = "trait with their domain-specific processing logic."]
6
7mod config;
8mod consumer;
9mod dedup;
10mod error;
11mod handler;
12mod parse;
13
14pub use config::StreamConfig;
15pub use consumer::StreamConsumer;
16pub use dedup::{release_dedup_lock, try_acquire_dedup_lock};
17pub use error::{StreamError, StreamResult};
18pub use handler::StreamHandler;
19pub use parse::{
20    as_array, as_integer, bulk_str, extract_data_field, parse_claimed_messages,
21    parse_pending_entries, parse_stream_response,
22};