mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-07 21:09:53 +00:00
16 lines
441 B
Go
16 lines
441 B
Go
package limiter
|
|
|
|
import (
|
|
"github.com/go-redis/redis/v8"
|
|
)
|
|
|
|
type GlobalDeviceLimitConfig struct {
|
|
Enable bool `mapstructure:"Enable"`
|
|
RedisAddr string `mapstructure:"RedisAddr"` // host:port
|
|
RedisPassword string `mapstructure:"RedisPassword"`
|
|
RedisDB int `mapstructure:"RedisDB"`
|
|
Timeout int `mapstructure:"Timeout"`
|
|
Expiry int `mapstructure:"Expiry"` // second
|
|
R *redis.Client
|
|
}
|