Directories
¶
| Path | Synopsis |
|---|---|
|
Package conn implements connection limiters that control the number of concurrent connections per key (global, per-IP, or per-CIDR).
|
Package conn implements connection limiters that control the number of concurrent connections per key (global, per-IP, or per-CIDR). |
|
wrapper
Package wrapper provides net.Conn and net.Listener wrappers that enforce connection limits.
|
Package wrapper provides net.Conn and net.Listener wrappers that enforce connection limits. |
|
Package quota implements a persisted, long-term traffic-volume limiter that can be shared across services by name.
|
Package quota implements a persisted, long-term traffic-volume limiter that can be shared across services by name. |
|
wrapper
Package wrapper adapts a named quota onto a listener and its connections, resolving the quota.Limiter by name from the registry on every call so create/update/delete takes effect live and several services can share one.
|
Package wrapper adapts a named quota onto a listener and its connections, resolving the quota.Limiter by name from the registry on every call so create/update/delete takes effect live and several services can share one. |
|
Package rate implements a rate limiter with support for global, per-IP, and CIDR-based rate limits with periodic hot-reload from file, Redis, or HTTP sources.
|
Package rate implements a rate limiter with support for global, per-IP, and CIDR-based rate limits with periodic hot-reload from file, Redis, or HTTP sources. |
|
Package traffic provides a traffic/bandwidth limiter implementation that supports per-service, per-connection, per-IP, and per-CIDR rate limiting for both ingress (In) and egress (Out) directions.
|
Package traffic provides a traffic/bandwidth limiter implementation that supports per-service, per-connection, per-IP, and per-CIDR rate limiting for both ingress (In) and egress (Out) directions. |
|
cache
Package limiter provides a cached traffic limiter that wraps a TrafficLimiter with in-memory caching to reduce calls to the underlying limiter (e.g., plugin-based limiters).
|
Package limiter provides a cached traffic limiter that wraps a TrafficLimiter with in-memory caching to reduce calls to the underlying limiter (e.g., plugin-based limiters). |
|
wrapper
Package wrapper provides net.Conn, net.PacketConn, and io.ReadWriter wrappers that apply traffic rate limiting to reads and writes.
|
Package wrapper provides net.Conn, net.PacketConn, and io.ReadWriter wrappers that apply traffic rate limiting to reads and writes. |
Click to show internal directories.
Click to hide internal directories.