#1 go-limiter
Package limiter defines rate limiting systems.
A Go blocking leaky-bucket rate limit implementation
Health score 71/100, confidence 95/100.
| Latest version | v0.3.1 |
| Imported by | 984 packages |
| Stars | 4.7K |
| Forks | 326 |
| Last activity | 2 years ago |
| Latest release | Unknown |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Clock | Type | type Clock interface{ ... } |
| Clock.Now | Method | Now func() time.Time |
| Clock.Sleep | Method | Sleep func(time.Duration) |
| Limiter | Type | type Limiter interface{ ... } |
| Limiter.Take | Method | Take func() time.Time |
| New | Function | func New(rate int, opts ...Option) Limiter |
| NewUnlimited | Function | func NewUnlimited() Limiter |
| Option | Type | type Option interface{} |
| Per | Function | func Per(per time.Duration) Option |
| WithClock | Function | func WithClock(clock Clock) Option |
| WithSlack | Function | func WithSlack(slack int) Option |
| WithoutSlack | Variable | var WithoutSlack Option = slackOption(0) |
Package limiter defines rate limiting systems.
net/http rate limiter middleware
Package httprl provides a rate limiter for http servers.
Dead simple rate limit middleware for Go.
Caddy WAF (Regex Rules, IP and DNS filtering, Rate Limiting, GeoIP, Tor, Anomaly Detection)
Package limiter defines rate limiting systems.
net/http rate limiter middleware
Package httprl provides a rate limiter for http servers.
Dead simple rate limit middleware for Go.
Caddy WAF (Regex Rules, IP and DNS filtering, Rate Limiting, GeoIP, Tor, Anomaly Detection)