3 Star 6 Fork 0

workits/pkgs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
types.go 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
workits 提交于 1年前 . 修改配置结构体tag
package cachex
type Config struct {
Addrs []string `mapstructure:"addrs"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
SentinelUsername string `mapstructure:"sentinel-username"`
SentinelPassword string `mapstructure:"sentinel-password"`
DB int `mapstructure:"db"`
MasterName string `mapstructure:"master-name"`
PoolFIFO bool `mapstructure:"pool-fifo"`
PoolSize int `mapstructure:"pool-size"`
MinIdleConns int `mapstructure:"min-idle-conns"`
MaxIdleConns int `mapstructure:"max-idle-conns"`
DialTimeout int64 `mapstructure:"dial-timeout"`
ReadTimeout int64 `mapstructure:"read-timeout"`
WriteTimeout int64 `mapstructure:"write-timeout"`
PoolTimeout int64 `mapstructure:"pool-timeout"`
MaxRetries int `mapstructure:"max-retries"`
MinRetryBackoff int64 `mapstructure:"min-retry-backoff"`
MaxRetryBackoff int64 `mapstructure:"max-retry-backoff"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/workits/pkgs.git
git@gitee.com:workits/pkgs.git
workits
pkgs
pkgs
v0.0.2

搜索帮助

371d5123 14472233 46e8bd33 14472233