Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory func(config *common.Config, outletFactory channel.Factory, context Context) (Prospectorer, error)
func GetFactory ¶
type Prospector ¶
Prospector contains the prospector
func New ¶
func New( conf *common.Config, outlet channel.Factory, beatDone chan struct{}, states []file.State, ) (*Prospector, error)
NewProspector instantiates a new 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 ¶
type Prospectorer interface { Run() Stop() Wait() }
Prospectorer is the interface common to all prospectors
type RunnerFactory ¶
type RunnerFactory struct {
// contains filtered or unexported fields
}
RunnerFactory is a factory for registrars
func NewRunnerFactory ¶
func NewRunnerFactory(outlet channel.Factory, registrar *registrar.Registrar, beatDone chan struct{}) *RunnerFactory
NewRunnerFactory instantiates a new RunnerFactory
Directories ¶
Path | Synopsis |
---|---|
Package log harvests different inputs for new information.
|
Package log harvests different inputs for new information. |
Package redis package contains prospector and harvester to read the redis slow log
|
Package redis package contains prospector and harvester to read the redis slow log |
Click to show internal directories.
Click to hide internal directories.