File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,10 @@ type ClusterOptions struct {
62
62
63
63
OnConnect func (ctx context.Context , cn * Conn ) error
64
64
65
- Protocol int
66
- Username string
67
- Password string
65
+ Protocol int
66
+ Username string
67
+ Password string
68
+ CredentialsProvider func () (username string , password string )
68
69
69
70
MaxRetries int
70
71
MinRetryBackoff time.Duration
@@ -269,9 +270,10 @@ func (opt *ClusterOptions) clientOptions() *Options {
269
270
Dialer : opt .Dialer ,
270
271
OnConnect : opt .OnConnect ,
271
272
272
- Protocol : opt .Protocol ,
273
- Username : opt .Username ,
274
- Password : opt .Password ,
273
+ Protocol : opt .Protocol ,
274
+ Username : opt .Username ,
275
+ Password : opt .Password ,
276
+ CredentialsProvider : opt .CredentialsProvider ,
275
277
276
278
MaxRetries : opt .MaxRetries ,
277
279
MinRetryBackoff : opt .MinRetryBackoff ,
You can’t perform that action at this time.
0 commit comments