Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitFilter ¶
type RateLimitFilter struct { RequestLimit int BurstLimit int // contains filtered or unexported fields }
func NewRateLimitFilter ¶
func NewRateLimitFilter(requestLimit, burstLimit int, excludePattern string) (*RateLimitFilter, error)
func (*RateLimitFilter) PeriodicCleanup ¶
func (r *RateLimitFilter) PeriodicCleanup(ctx context.Context)
func (*RateLimitFilter) WithRateLimitAuthenticatedUser ¶
func (r *RateLimitFilter) WithRateLimitAuthenticatedUser(handler http.Handler) http.Handler
WithRateLimitAuthenticatedUser limits the number of requests per-user
Click to show internal directories.
Click to hide internal directories.