Documentation
¶
Overview ¶
Package limits enforces gateway rate and daily usage policies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayLimiter ¶
type GatewayLimiter struct {
// contains filtered or unexported fields
}
func NewGatewayLimiter ¶
func NewGatewayLimiter(store trace.TraceStore, cfg Config) *GatewayLimiter
func (*GatewayLimiter) CheckRequest ¶
func (l *GatewayLimiter) CheckRequest(r *http.Request, identity *auth.Identity) (*auth.ProxyLimitResult, error)
func (*GatewayLimiter) Enabled ¶
func (l *GatewayLimiter) Enabled() bool
Click to show internal directories.
Click to hide internal directories.