@@ -14,6 +14,7 @@ import (
14
14
"sync/atomic"
15
15
"time"
16
16
17
+ "github.com/redis/go-redis/v9/auth"
17
18
"github.com/redis/go-redis/v9/internal"
18
19
"github.com/redis/go-redis/v9/internal/hashtag"
19
20
"github.com/redis/go-redis/v9/internal/pool"
@@ -66,11 +67,12 @@ type ClusterOptions struct {
66
67
67
68
OnConnect func (ctx context.Context , cn * Conn ) error
68
69
69
- Protocol int
70
- Username string
71
- Password string
72
- CredentialsProvider func () (username string , password string )
73
- CredentialsProviderContext func (ctx context.Context ) (username string , password string , err error )
70
+ Protocol int
71
+ Username string
72
+ Password string
73
+ CredentialsProvider func () (username string , password string )
74
+ CredentialsProviderContext func (ctx context.Context ) (username string , password string , err error )
75
+ StreamingCredentialsProvider auth.StreamingCredentialsProvider
74
76
75
77
MaxRetries int
76
78
MinRetryBackoff time.Duration
@@ -291,11 +293,12 @@ func (opt *ClusterOptions) clientOptions() *Options {
291
293
Dialer : opt .Dialer ,
292
294
OnConnect : opt .OnConnect ,
293
295
294
- Protocol : opt .Protocol ,
295
- Username : opt .Username ,
296
- Password : opt .Password ,
297
- CredentialsProvider : opt .CredentialsProvider ,
298
- CredentialsProviderContext : opt .CredentialsProviderContext ,
296
+ Protocol : opt .Protocol ,
297
+ Username : opt .Username ,
298
+ Password : opt .Password ,
299
+ CredentialsProvider : opt .CredentialsProvider ,
300
+ CredentialsProviderContext : opt .CredentialsProviderContext ,
301
+ StreamingCredentialsProvider : opt .StreamingCredentialsProvider ,
299
302
300
303
MaxRetries : opt .MaxRetries ,
301
304
MinRetryBackoff : opt .MinRetryBackoff ,
0 commit comments