Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorLogger ¶
ErrorLogger is a middleware that logs http errors.
Types ¶
type RateLimit ¶
type RateLimit struct { Limiter *limiter.Limiter OnError stdlib.ErrorHandler OnLimitReached stdlib.LimitReachedHandler }
func NewRateLimit ¶
func NewRateLimit(opts RateLimitOpts) *RateLimit
type RateLimitOpts ¶
Click to show internal directories.
Click to hide internal directories.