mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-08 13:29:54 +00:00
13 lines
514 B
Go
13 lines
514 B
Go
package limiter
|
|
|
|
type GlobalDeviceLimitConfig struct {
|
|
Enable bool `mapstructure:"Enable"`
|
|
RedisNetwork string `mapstructure:"RedisNetwork"` // tcp or unix
|
|
RedisAddr string `mapstructure:"RedisAddr"` // host:port, or /path/to/unix.sock
|
|
RedisUsername string `mapstructure:"RedisUsername"`
|
|
RedisPassword string `mapstructure:"RedisPassword"`
|
|
RedisDB int `mapstructure:"RedisDB"`
|
|
Timeout int `mapstructure:"Timeout"`
|
|
Expiry int `mapstructure:"Expiry"` // second
|
|
}
|