mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
Implement cancellation rate limiting and ip allowlist checks. Add ip_allowlist to the cancel closure Fixes [#16456](https://github.com/neondatabase/cloud/issues/16456)
12 lines
407 B
Rust
12 lines
407 B
Rust
mod leaky_bucket;
|
|
mod limit_algorithm;
|
|
mod limiter;
|
|
|
|
pub use leaky_bucket::{EndpointRateLimiter, LeakyBucketConfig, LeakyBucketRateLimiter};
|
|
#[cfg(test)]
|
|
pub(crate) use limit_algorithm::aimd::Aimd;
|
|
pub(crate) use limit_algorithm::{
|
|
DynamicLimiter, Outcome, RateLimitAlgorithm, RateLimiterConfig, Token,
|
|
};
|
|
pub use limiter::{BucketRateLimiter, GlobalRateLimiter, RateBucketInfo, WakeComputeRateLimiter};
|