#1 go-limiter
Package limiter defines rate limiting systems.
Dead simple rate limit middleware for Go.
Health score 77/100, confidence 95/100.
| Latest version | v3.11.2 |
| Imported by | 341 packages |
| Stars | 2.3K |
| Forks | 162 |
| Last activity | 1 years ago |
| Latest release | v3.11.2 (3 years ago) |
| License | MIT |
| Known vuln records | 0 |
| Symbol | Kind | Synopsis |
|---|---|---|
| Context | Type | type Context struct{ ... } |
| Context.Limit | Field | Limit int64 |
| Context.Reached | Field | Reached bool |
| Context.Remaining | Field | Remaining int64 |
| Context.Reset | Field | Reset int64 |
| Limiter | Type | type Limiter struct{ ... } |
| Limiter.Get | Method | func (limiter *Limiter) Get(ctx context.Context, key string) (Context, error) |
| Limiter.GetIP | Method | func (limiter *Limiter) GetIP(r *http.Request) net.IP |
| Limiter.GetIPKey | Method | func (limiter *Limiter) GetIPKey(r *http.Request) string |
| Limiter.GetIPWithMask | Method | func (limiter *Limiter) GetIPWithMask(r *http.Request) net.IP |
| Limiter.Increment | Method | func (limiter *Limiter) Increment(ctx context.Context, key string, count int64) (Context, error) |
| Limiter.Options | Field | Options Options |
Package limiter defines rate limiting systems.
net/http rate limiter middleware
Package httprl provides a rate limiter for http servers.
Package caddywaf implements a Web Application Firewall (WAF) middleware for Caddy.
Package limiter defines rate limiting systems.
net/http rate limiter middleware
Package httprl provides a rate limiter for http servers.
Package caddywaf implements a Web Application Firewall (WAF) middleware for Caddy.
A Go blocking leaky-bucket rate limit implementation