mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: sql解析器替换、工单统一由‘我的流程’发起、流程定义支持自定义条件触发审批、资源隐藏编号、model支持物理删除等
This commit is contained in:
@@ -25,11 +25,12 @@ const (
|
||||
type RedisInfo struct {
|
||||
Id uint64 `json:"id"`
|
||||
|
||||
Host string `json:"host"`
|
||||
Db int `json:"db"` // 库号
|
||||
Mode RedisMode `json:"mode"`
|
||||
Username string `json:"-"`
|
||||
Password string `json:"-"`
|
||||
Host string `json:"host"`
|
||||
Db int `json:"db"` // 库号
|
||||
Mode RedisMode `json:"mode"`
|
||||
Username string `json:"-"`
|
||||
Password string `json:"-"`
|
||||
RedisNodePassword string `json:"-"`
|
||||
|
||||
Name string `json:"-"`
|
||||
CodePath []string `json:"codePath"`
|
||||
@@ -111,9 +112,9 @@ func (re *RedisInfo) connSentinel() (*RedisConn, error) {
|
||||
MasterName: masterNameAndHosts[0],
|
||||
SentinelAddrs: strings.Split(masterNameAndHosts[1], ","),
|
||||
Username: re.Username,
|
||||
Password: re.Password, // no password set
|
||||
Password: re.RedisNodePassword, // no password set
|
||||
SentinelUsername: re.Username,
|
||||
SentinelPassword: re.Password, // 哨兵节点密码需与redis节点密码一致
|
||||
SentinelPassword: re.Password, // 哨兵节点密码
|
||||
DB: re.Db, // use default DB
|
||||
DialTimeout: 8 * time.Second,
|
||||
ReadTimeout: -1, // Disable timeouts, because SSH does not support deadlines.
|
||||
|
||||
Reference in New Issue
Block a user