#1 httprate
net/http rate limiter middleware
Package limiter defines rate limiting systems.
Health score 82/100, confidence 60/100.
| Latest version | Unknown |
| Imported by | 66 packages |
| Stars | 716 |
| Forks | 51 |
| Last activity | 6 months ago |
| Latest release | v1.1.0 (6 months ago) |
| License | Apache-2.0 |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Store | Type | type Store interface{ ... } |
| Store.Burst | Method | Burst func(ctx context.Context, key string, tokens uint64) error |
| Store.Close | Method | Close func(ctx context.Context) error |
| Store.Get | Method | Get func(ctx context.Context, key string) (tokens, remaining uint64, err error) |
| Store.Set | Method | Set func(ctx context.Context, key string, tokens uint64, interval time.Duration) error |
| Store.Take | Method | Take func(ctx context.Context, key string) (tokens, remaining, reset uint64, ok bool, err error) |
| ErrStopped | Variable | var ErrStopped = fmt.Errorf("store is stopped") |
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)
A Go blocking leaky-bucket rate limit implementation