#1 httprate
net/http rate limiter middleware
Dead simple rate limit middleware for Go.
Health score 52/100, confidence 80/100.
| Latest version | v2.2.2+incompatible |
| Imported by | 449 packages |
| Stars | 0 |
| Forks | 0 |
| Last activity | 7 years ago |
| Latest release | Unknown |
| License | Unknown |
| 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.Peek | Method | func (limiter *Limiter) Peek(ctx context.Context, key string) (Context, error) |
| Limiter.Rate | Field | Rate Rate |
| Limiter.Store | Field | Store Store |
| New | Function | func New(store Store, rate Rate) *Limiter |
| Rate | Type | type Rate struct{ ... } |
net/http rate limiter middleware
Package limiter defines rate limiting systems.
net/http rate limiter middleware
Package limiter defines rate limiting systems.