Skip to main content

Module rate_limiter

Module rate_limiter 

Source

Structsยง

RateLimitGuard
RAII guard that previously tracked response times. Now a no-op dummy, kept for backwards compatibility with existing APIs.
RateLimiter
In-memory rate limiter that manages token buckets for different endpoints Thread-safe but not cross-process
TokenBucketState
State of a token bucket for rate limiting