File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,10 @@ type ClusterOptions struct {
6262
6363 OnConnect func (ctx context.Context , cn * Conn ) error
6464
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 )
6869
6970 MaxRetries int
7071 MinRetryBackoff time.Duration
@@ -271,9 +272,10 @@ func (opt *ClusterOptions) clientOptions() *Options {
271272 Dialer : opt .Dialer ,
272273 OnConnect : opt .OnConnect ,
273274
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 ,
277279
278280 MaxRetries : opt .MaxRetries ,
279281 MinRetryBackoff : opt .MinRetryBackoff ,
You can’t perform that action at this time.
0 commit comments