Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is a factory for registrars
type Log ¶
type Log struct { Prospector *Prospector // contains filtered or unexported fields }
Log contains the prospector and its config
func (*Log) LoadStates ¶
LoadStates loads states into prospector It goes through all states coming from the registry. Only the states which match the glob patterns of the prospector will be loaded and updated. All other states will not be touched.
type Prospector ¶
type Prospector struct { Once bool // contains filtered or unexported fields }
Prospector contains the prospector
func NewProspector ¶
func NewProspector(cfg *common.Config, outlet channel.Outleter, beatDone chan struct{}) (*Prospector, error)
NewProspector instantiates a new prospector
func (*Prospector) LoadStates ¶
func (p *Prospector) LoadStates(states []file.State) error
LoadStates sets up default config for prospector
func (*Prospector) Run ¶
func (p *Prospector) Run()
Run starts scanning through all the file paths and fetch the related files. Start a harvester for each file
func (*Prospector) Stop ¶
func (p *Prospector) Stop()
Stop stops the prospector and with it all harvesters
type Prospectorer ¶
Prospectorer is the interface common to all prospectors