Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct { LimitPerMinute int // contains filtered or unexported fields }
func NewRateLimiter ¶
func NewRateLimiter(redisPool *redis.Client, logger *zap.Logger, option Option) *RateLimiter
func (RateLimiter) Middleware ¶
func (rl RateLimiter) Middleware(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.