Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { RateLimit string RedisClient *redis.Client RedisDB int RedisHost string RedisPassword string RedisPort int RedisPrefix string }
func New ¶
func New() *Middleware
func (*Middleware) Handler ¶
func (m *Middleware) Handler() gin.HandlerFunc
func (*Middleware) Register ¶
func (m *Middleware) Register()
func (*Middleware) SetRedisClient ¶
func (m *Middleware) SetRedisClient(redisClient *redis.Client)
Click to show internal directories.
Click to hide internal directories.