Skip to main content

hashiverse_lib/transport/ddos/
mod.rs

1//! # Per-IP DDoS scoring and connection-slot accounting
2//!
3//! The `DdosProtection` trait plus its connection guard, time-decayed scoring,
4//! and ban hooks. An in-memory implementation covers tests and accounting-only
5//! deployments; a no-op implementation is available for test scenarios downstream
6//! of the DDoS layer. The kernel-level ipset-backed production implementation
7//! lives in `hashiverse-server-lib`.
8
9pub mod ddos;
10pub mod noop_ddos;
11#[cfg(not(target_arch = "wasm32"))]
12pub mod mem_ddos;