1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! Rate limiting utilities for the Gateway //! //! This module provides rate limiting functionality using token bucket and sliding window algorithms. #![allow(dead_code)] // Module declarations mod engine; mod types; mod utils; mod window; #[cfg(test)] mod tests; // Re-exports pub use engine::RateLimiter; pub use types::{LimiterConfig, RateLimitKey, RateLimitResult, SlidingWindow, TokenBucket};