增加redis客户端链接 / 日志初始化
This commit is contained in:
@ -22,9 +22,10 @@ import (
|
||||
//
|
||||
// Date : 12:23 2022/6/15
|
||||
type FullConfig struct {
|
||||
Logger *logger.InputLogConfig `json:"logger" yaml:"logger"` // 日志配置
|
||||
Master *Config `json:"master" yaml:"master"` // 主节点
|
||||
Slave *Config `json:"slave" yaml:"slave"` // 从节点
|
||||
ExtraFieldList []string `json:"extra_field_list" yaml:"extra_field_list"` // 从上下文抽取的字段信息
|
||||
Logger *logger.InputLogConfig `json:"logger" yaml:"logger"` // 日志配置
|
||||
Master *Config `json:"master" yaml:"master"` // 主节点
|
||||
Slave *Config `json:"slave" yaml:"slave"` // 从节点
|
||||
}
|
||||
|
||||
// Config redis的配置
|
||||
@ -43,7 +44,6 @@ type Config struct {
|
||||
|
||||
// Hook that is called when new connection is established.
|
||||
// OnConnect func(ctx context.Context, cn *redis.Conn) error
|
||||
|
||||
// Use the specified Username to authenticate the current connection
|
||||
// with one of the connections defined in the ACL list when connecting
|
||||
// to a Redis 6.0 instance, or greater, that is using the Redis ACL system.
|
||||
|
Reference in New Issue
Block a user