Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisLimitCounter ¶
func NewRedisLimitCounter(cfg *Config) (httprate.LimitCounter, error)
func WithRedisLimitCounter ¶
Types ¶
type Config ¶
type Config struct { Host string `toml:"host"` Port uint16 `toml:"port"` Password string `toml:"password"` // optional DBIndex int `toml:"db_index"` // default 0 MaxIdle int `toml:"max_idle"` // default 4 MaxActive int `toml:"max_active"` // default 8 Disabled bool `toml:"disabled"` // default false }
Click to show internal directories.
Click to hide internal directories.