Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisStore ¶
func RedisStore(options *RedisOptions) ratelimit.Store
Types ¶
type RedisOptions ¶
type RedisOptions struct { // the user can make Limit amount of requests every Rate Rate time.Duration // the amount of requests that can be made every Rate Limit uint RedisClient redis.UniversalClient // should gin-rate-limit panic when there is an error with redis PanicOnErr bool // a function that returns true if the request should not count toward the rate limit Skip func(*gin.Context) bool }
Click to show internal directories.
Click to hide internal directories.