Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
RedisClient wraps the redis connection
func NewRedisClient ¶
func NewRedisClient(addr string) *RedisClient
NewRedisClient creates a new Redis client for rate limiting
func (*RedisClient) AllowConnection ¶
AllowConnection checks if a client is allow to send message based on rate limiting.
Click to show internal directories.
Click to hide internal directories.