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(c *gin.Context, err error) + func DefaultKeyGetter(c *gin.Context) string + func DefaultLimitReachedHandler(c *gin.Context) + func NewMiddleware(limiter *limiter.Limiter, options ...Option) gin.HandlerFunc + type ErrorHandler func(c *gin.Context, err error) + type KeyGetter func(c *gin.Context) string + type LimitReachedHandler func(c *gin.Context) + type Middleware struct + ExcludedKey func(string) bool + KeyGetter KeyGetter + Limiter *limiter.Limiter + OnError ErrorHandler + OnLimitReached LimitReachedHandler + func (middleware *Middleware) Handle(c *gin.Context) + type Option interface + func WithErrorHandler(handler ErrorHandler) Option + func WithExcludedKey(handler func(string) bool) Option + func WithKeyGetter(handler KeyGetter) Option + func WithLimitReachedHandler(handler LimitReachedHandler) Option Other modules containing this package github.com/catch-co/limiter