Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogType = "log" StdinType = "stdin" RedisType = "redis" )
Contains available prospector types
Variables ¶
ValidType of valid input types
Functions ¶
Types ¶
type Forwarder ¶
type Forwarder struct {
Config ForwarderConfig
Outlet Outlet
Processors *processors.Processors
}
Forwarder contains shared options between all harvesters needed to forward events
func NewForwarder ¶
NewForwarder creates a new forwarder instances and initialises processors if configured
type ForwarderConfig ¶
type ForwarderConfig struct {
common.EventMetadata `config:",inline"` // Fields and tags to add to events.
Type string `config:"type"`
Pipeline string `config:"pipeline"`
Module string `config:"_module_name"` // hidden option to set the module name
Fileset string `config:"_fileset_name"` // hidden option to set the fileset name
Processors processors.PluginConfig `config:"processors"`
}
ForwarderConfig contains all config options shared by all harvesters
type Harvester ¶
Harvester contains all methods which must be supported by each harvester so the registry can be used by the prospector.
type Outlet ¶
type Outlet interface {
SetSignal(signal <-chan struct{})
OnEventSignal(data *util.Data) bool
OnEvent(data *util.Data) bool
}
Outlet interface is used for forwarding events
Source Files
¶
- forwarder.go
- harvester.go
- registry.go
- source.go
- util.go
Click to show internal directories.
Click to hide internal directories.