relay_quotas/
lib.rs

1//! Quotas and rate limiting for Relay.
2
3#![warn(missing_docs)]
4#![doc(
5    html_logo_url = "https://raw.githubusercontent.com/getsentry/relay/master/artwork/relay-icon.png",
6    html_favicon_url = "https://raw.githubusercontent.com/getsentry/relay/master/artwork/relay-icon.png"
7)]
8#![allow(clippy::derive_partial_eq_without_eq)]
9
10/// The default timeout to apply when a scope is fully rejected. This
11/// typically happens for disabled keys, projects, or organizations.
12const REJECT_ALL_SECS: u64 = 60;
13
14mod quota;
15mod rate_limit;
16
17pub use self::quota::*;
18pub use self::rate_limit::*;
19
20#[cfg(feature = "redis")]
21mod global;
22#[cfg(feature = "redis")]
23pub use self::global::{GlobalLimiter, GlobalRateLimiter};
24
25#[cfg(feature = "redis")]
26mod redis;
27#[cfg(feature = "redis")]
28pub use self::redis::*;