Versions in this module Expand all Collapse all v3 v3.5.0 Apr 10, 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 + 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 WithKeyGetter(KeyGetter KeyGetter) Option + func WithLimitReachedHandler(handler LimitReachedHandler) Option Other modules containing this package github.com/n1try/limiter