Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker interface { Add(reader *reader.Reader) GetCurrentFile(fp *fingerprint.Fingerprint) *reader.Reader GetOpenFile(fp *fingerprint.Fingerprint) *reader.Reader GetClosedFile(fp *fingerprint.Fingerprint) *reader.Metadata GetMetadata() []*reader.Metadata LoadMetadata(metadata []*reader.Metadata) CurrentPollFiles() []*reader.Reader PreviousPollFiles() []*reader.Reader ClosePreviousFiles() EndPoll() EndConsume() TotalReaders() int }
Interface for tracking files that are being consumed.
func NewFileTracker ¶ added in v0.99.0
func NewFileTracker(logger *zap.SugaredLogger, maxBatchFiles int) Tracker
func NewNoStateTracker ¶ added in v0.99.0
func NewNoStateTracker(logger *zap.SugaredLogger, maxBatchFiles int) Tracker
Click to show internal directories.
Click to hide internal directories.