mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
add CredentialsProvider to ClusterOptions (#2791)
This commit is contained in:
parent
21ed15bbed
commit
516abe867d
@ -65,6 +65,7 @@ type ClusterOptions struct {
|
||||
Protocol int
|
||||
Username string
|
||||
Password string
|
||||
CredentialsProvider func() (username string, password string)
|
||||
|
||||
MaxRetries int
|
||||
MinRetryBackoff time.Duration
|
||||
@ -274,6 +275,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
|
||||
Protocol: opt.Protocol,
|
||||
Username: opt.Username,
|
||||
Password: opt.Password,
|
||||
CredentialsProvider: opt.CredentialsProvider,
|
||||
|
||||
MaxRetries: opt.MaxRetries,
|
||||
MinRetryBackoff: opt.MinRetryBackoff,
|
||||
|
Loading…
x
Reference in New Issue
Block a user