Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { States []file.State Done chan struct{} BeatDone chan struct{} DynamicFields *common.MapStrPointer }
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, dynFields *common.MapStrPointer, ) (*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
func (*Prospector) String ¶
func (p *Prospector) String() string
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
func (*RunnerFactory) Create ¶
func (r *RunnerFactory) Create(c *common.Config, meta *common.MapStrPointer) (cfgfile.Runner, error)
Create creates a prospector based on a config
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.