#1 go-limiter
Package limiter defines rate limiting systems.
Package httprl provides a rate limiter for http servers.
Health score 78/100, confidence 95/100.
| Latest version | v1.0.0 |
| Imported by | 56 packages |
| Stars | 5 |
| Forks | 1 |
| Last activity | 1 months ago |
| Latest release | Unknown |
| License | NOASSERTION |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Backend | Type | type Backend interface{ ... } |
| Backend.Hit | Method | Hit func(key string, ttlsec int32) (count uint64, remttl int32, err error) |
| KeyMaker | Type | type KeyMaker func(r *http.Request) string |
| Map | Type | type Map struct{} |
| Map.Hit | Method | func (m *Map) Hit(key string, ttlsec int32) (count uint64, remttl int32, err error) |
| Map.Start | Method | func (m *Map) Start() |
| Map.Stop | Method | func (m *Map) Stop() |
| NewMap | Function | func NewMap(precision int32) *Map |
| Policy | Type | type Policy int |
| AllowPolicy | Constant | const AllowPolicy |
| BlockPolicy | Constant | const BlockPolicy |
| RateLimiter | Type | type RateLimiter struct{ ... } |
Package limiter defines rate limiting systems.
net/http rate limiter middleware
Dead simple rate limit middleware for Go.
Package caddywaf implements a Web Application Firewall (WAF) middleware for Caddy.
A Go blocking leaky-bucket rate limit implementation