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
@@ -271,9 +272,10 @@ func (opt *ClusterOptions) clientOptions() *Options {
271
272
Dialer : opt .Dialer ,
272
273
OnConnect : opt .OnConnect ,
273
274
274
- Protocol : opt .Protocol ,
275
- Username : opt .Username ,
276
- Password : opt .Password ,
275
+ Protocol : opt .Protocol ,
276
+ Username : opt .Username ,
277
+ Password : opt .Password ,
278
+ CredentialsProvider : opt .CredentialsProvider ,
277
279
278
280
MaxRetries : opt .MaxRetries ,
279
281
MinRetryBackoff : opt .MinRetryBackoff ,
You can’t perform that action at this time.
0 commit comments