Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Client *r.Client // redis连接
)
View Source
var Default group = group{}
View Source
var Hash grouphash = grouphash{}
Functions ¶
This section is empty.
Types ¶
type RedisConfig ¶
type RedisConfig struct { Enable bool `mapstructure:"enable" json:"enable" yaml:"enable"` // 是否开启 DB int `mapstructure:"db" json:"db" yaml:"db"` // redis的哪个数据库 Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` // 服务器地址:端口 Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码 }
func (RedisConfig) Load ¶
func (rc RedisConfig) Load()
Click to show internal directories.
Click to hide internal directories.