Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSource ¶
type FileStat ¶
type FileStat struct { Fileinfo os.FileInfo /* the file info */ Return chan int64 /* the harvester will send an event with its offset when it closes */ LastIteration uint32 /* int number of the last iterations in which we saw this file */ }
Contains statistic about file when it was last seend by the prospector
type Harvester ¶
type Harvester struct { Path string /* the file path to harvest */ ProspectorConfig config.ProspectorConfig Config *config.HarvesterConfig Offset int64 Stat *FileStat SpoolerChan chan *input.FileEvent // contains filtered or unexported fields }
func NewHarvester ¶
func NewHarvester( prospectorCfg config.ProspectorConfig, cfg *config.HarvesterConfig, path string, stat *FileStat, spooler chan *input.FileEvent, ) (*Harvester, error)
type LogSource ¶
type LogSource interface { io.ReadCloser Name() string }
Click to show internal directories.
Click to hide internal directories.