Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FilterPluginNames = []string{
"nop",
"sample",
}
Functions ¶
This section is empty.
Types ¶
type FilterPlugin ¶
type FilterPlugin interface { // New creates a new FilterPlugin instance with the // given name and configuration. New(name string, config map[string]interface{}) (FilterPlugin, error) // Filter executes the filter. Filter(event common.MapStr) (common.MapStr, error) // String returns the name of the filter. String() string // Type returns the type of the filter. Type() Filter }
The FilterPlugin interface needs to be implemented by all the filtering plugins.
type FiltersList ¶
type FiltersList struct {
// contains filtered or unexported fields
}
Contains a list of the available filter plugins.
var Filters FiltersList
func (FiltersList) Get ¶
func (filters FiltersList) Get(filter Filter) FilterPlugin
func (FiltersList) Register ¶
func (filters FiltersList) Register(filter Filter, plugin FilterPlugin)
Click to show internal directories.
Click to hide internal directories.