@@ -80,15 +80,17 @@ type (
8080
8181 // SessionRedisConfig represents the Redis configuration for session storage
8282 SessionRedisConfig struct {
83- ClusterType string `yaml:"cluster_type"` // "single", "cluster" or "sentinel"
84- Addr string `yaml:"addr"` // multiple addresses separated by ;.
85- MasterName string `yaml:"master_name"` // MasterName is the sentinel master name.
86- Username string `yaml:"username"`
87- Password string `yaml:"password"`
88- DB int `yaml:"db"`
89- Topic string `yaml:"topic"`
90- Prefix string `yaml:"prefix"`
91- TTL time.Duration `yaml:"ttl"` // TTL for session data in Redis
83+ ClusterType string `yaml:"cluster_type"` // "single", "cluster" or "sentinel"
84+ Addr string `yaml:"addr"` // multiple addresses separated by ;.
85+ MasterName string `yaml:"master_name"` // MasterName is the sentinel master name.
86+ Username string `yaml:"username"`
87+ Password string `yaml:"password"`
88+ SentinelUsername string `yaml:"sentinel_username"`
89+ SentinelPassword string `yaml:"sentinel_password"`
90+ DB int `yaml:"db"`
91+ Topic string `yaml:"topic"`
92+ Prefix string `yaml:"prefix"`
93+ TTL time.Duration `yaml:"ttl"` // TTL for session data in Redis
9294 }
9395
9496 // LoggerConfig represents the logger configuration
@@ -123,12 +125,14 @@ type (
123125 Redis OAuth2RedisConfig `yaml:"redis"`
124126 }
125127 OAuth2RedisConfig struct {
126- ClusterType string `yaml:"cluster_type"` // "single", "cluster" or "sentinel"
127- Addr string `yaml:"addr"`
128- MasterName string `yaml:"master_name"` // MasterName is the sentinel master name.
129- Username string `yaml:"username"`
130- Password string `yaml:"password"`
131- DB int `yaml:"db"`
128+ ClusterType string `yaml:"cluster_type"` // "single", "cluster" or "sentinel"
129+ Addr string `yaml:"addr"`
130+ MasterName string `yaml:"master_name"` // MasterName is the sentinel master name.
131+ Username string `yaml:"username"`
132+ Password string `yaml:"password"`
133+ SentinelUsername string `yaml:"sentinel_username"`
134+ SentinelPassword string `yaml:"sentinel_password"`
135+ DB int `yaml:"db"`
132136 }
133137
134138 // GoogleOAuthConfig defines Google OAuth configuration
0 commit comments