File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
internal/topic/topicwriterinternal Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ * Added option for set interval of auth token update in topic streams
12* Supported internal allocator in ` {session,statement}.Execute ` for decrease memory usage
23* Fixed typo in ` topic/README.md `
34* Upgraded ` ydb-go-genproto ` dependency
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ func WithCompressorCount(num int) PublicWriterOption {
4242 }
4343}
4444
45+ func WithTokenUpdateInterval (interval time.Duration ) PublicWriterOption {
46+ return func (cfg * WriterReconnectorConfig ) {
47+ cfg .credUpdateInterval = interval
48+ }
49+ }
50+
4551// WithCommonConfig
4652//
4753// # Experimental
Original file line number Diff line number Diff line change @@ -234,3 +234,14 @@ func WithReaderTrace(tracer trace.Topic) ReaderOption {
234234 cfg .Tracer = cfg .Tracer .Compose (tracer )
235235 }
236236}
237+
238+ // WithReaderUpdateTokenInterval
239+ //
240+ // # Experimental
241+ //
242+ // Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
243+ func WithReaderUpdateTokenInterval (interval time.Duration ) ReaderOption {
244+ return func (cfg * topicreaderinternal.ReaderConfig ) {
245+ cfg .CredUpdateInterval = interval
246+ }
247+ }
Original file line number Diff line number Diff line change 11package topicoptions
22
33import (
4+ "time"
5+
46 "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic/rawtopiccommon"
57 "github.com/ydb-platform/ydb-go-sdk/v3/internal/topic/topicwriterinternal"
68 "github.com/ydb-platform/ydb-go-sdk/v3/topic/topictypes"
@@ -169,3 +171,12 @@ func WithWriterSetAutoCreatedAt(val bool) WriterOption {
169171func WithWriterTrace (tracer trace.Topic ) WriterOption {
170172 return topicwriterinternal .WithTrace (tracer )
171173}
174+
175+ // WithWriterUpdateTokenInterval
176+ //
177+ // # Experimental
178+ //
179+ // Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
180+ func WithWriterUpdateTokenInterval (interval time.Duration ) WriterOption {
181+ return topicwriterinternal .WithTokenUpdateInterval (interval )
182+ }
You can’t perform that action at this time.
0 commit comments