Documentation ¶
Index ¶
- func New(collection file.Collection, options ...file.ReaderOption) (file.Reader, error)
- func WithAutoDelete(informer logger.Informer) file.ReaderOption
- func WithChangeShardErrorIgnore() file.ReaderOption
- func WithChangeShardRepeatRead() file.ReaderOption
- func WithReadBytesLength(counter prometheus.Counter) file.ReaderOption
- type AutoDelete
- type ChangeShardErrorIgnore
- type ChangeShardRepeatRead
- type ReadBytesLength
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(collection file.Collection, options ...file.ReaderOption) (file.Reader, error)
func WithAutoDelete ¶
func WithAutoDelete(informer logger.Informer) file.ReaderOption
func WithChangeShardErrorIgnore ¶
func WithChangeShardErrorIgnore() file.ReaderOption
func WithChangeShardRepeatRead ¶
func WithChangeShardRepeatRead() file.ReaderOption
func WithReadBytesLength ¶
func WithReadBytesLength(counter prometheus.Counter) file.ReaderOption
Types ¶
type AutoDelete ¶
func NewAutoDelete ¶
func NewAutoDelete(reader file.Reader, informer logger.Informer) *AutoDelete
type ChangeShardErrorIgnore ¶
func NewChangeShardErrorIgnore ¶
func NewChangeShardErrorIgnore(reader file.Reader) *ChangeShardErrorIgnore
type ChangeShardRepeatRead ¶
func NewChangeShardRepeatRead ¶
func NewChangeShardRepeatRead(reader file.Reader) *ChangeShardRepeatRead
type ReadBytesLength ¶
func NewReadBytesLength ¶
func NewReadBytesLength(reader file.Reader, counter prometheus.Counter) *ReadBytesLength
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(collection file.Collection) *Reader
func (*Reader) Collection ¶
func (reader *Reader) Collection() file.Collection
Click to show internal directories.
Click to hide internal directories.