github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/internal/topic/topicreadercommon/read_selector.go (about)

     1  package topicreadercommon
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/ydb-platform/ydb-go-sdk/v3/internal/clone"
     7  )
     8  
     9  type PublicReadSelector struct {
    10  	Path       string
    11  	Partitions []int64
    12  	ReadFrom   time.Time     // zero value mean skip read from filter
    13  	MaxTimeLag time.Duration // 0 mean skip time lag filter
    14  }
    15  
    16  // Clone create deep clone of the selector
    17  func (s PublicReadSelector) Clone() *PublicReadSelector { //nolint:gocritic
    18  	s.Partitions = clone.Int64Slice(s.Partitions)
    19  
    20  	return &s
    21  }