linesmith-core 0.1.3

Internal core engine for linesmith. No SemVer guarantee for direct dependents — depend on the `linesmith` binary or accept breakage between minor versions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Rate-limit segment family. Renders the 5-hour and 7-day usage
//! windows from `ctx.usage()` per `docs/specs/rate-limit-segments.md`.
//!
//! See `format` for the shared render helpers, and the per-window
//! files (`five_hour`, `five_hour_reset`, `seven_day`, `seven_day_reset`)
//! for the four `Segment` impls. The dispatcher in `segments::mod.rs`
//! wires the user-facing `[segments.rate_limit_*]` config keys to the
//! segment structs re-exported below.

pub mod config;
pub mod five_hour;
pub mod format;
pub mod seven_day;
pub mod window;

pub use five_hour::{RateLimit5hResetSegment, RateLimit5hSegment};
pub use seven_day::{RateLimit7dResetSegment, RateLimit7dSegment};