Versions in this module Expand all Collapse all v3 v3.5.3 May 16, 2020 v3.5.2 May 16, 2020 Changes in this version + func DefaultErrorHandler(w http.ResponseWriter, r *http.Request, err error) + func DefaultLimitReachedHandler(w http.ResponseWriter, r *http.Request) + type ErrorHandler func(w http.ResponseWriter, r *http.Request, err error) + type LimitReachedHandler func(w http.ResponseWriter, r *http.Request) + type Middleware struct + ExcludedKey func(string) bool + Limiter *limiter.Limiter + OnError ErrorHandler + OnLimitReached LimitReachedHandler + func NewMiddleware(limiter *limiter.Limiter, options ...Option) *Middleware + func (middleware *Middleware) Handler(h http.Handler) http.Handler + type Option interface + func WithErrorHandler(handler ErrorHandler) Option + func WithExcludedKey(handler func(string) bool) Option + func WithLimitReachedHandler(handler LimitReachedHandler) Option Other modules containing this package github.com/catch-co/limiter