/
githubmirror
/
ydb-go-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-go-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
internal/topic/topicreadercommon/read_selector.go
21 строка
483 B
Timofey Koolin
extract common topic code to dedicated package
24 июл 2024, 13:21
24 июл 2024, 13:21
ef21577
Код
Авторство
О чём код?
package topicreadercommon import ( "time" "github.com/ydb-platform/ydb-go-sdk/v3/internal/clone" ) type PublicReadSelector struct { Path string Partitions []int64 ReadFrom time.Time // zero value mean skip read from filter MaxTimeLag time.Duration // 0 mean skip time lag filter } // Clone create deep clone of the selector func (s PublicReadSelector) Clone() *PublicReadSelector { //nolint:gocritic s.Partitions = clone.Int64Slice(s.Partitions) return &s }