Documentation ¶
Index ¶
- func Factory() (pipeline.AnyPlugin, pipeline.AnyConfig)
- type Config
- type Plugin
- func (p *Plugin) Commit(event *pipeline.Event)
- func (p *Plugin) In(sourceID pipeline.SourceID, sourceName string, offset int64, bytes []byte)
- func (p *Plugin) PassEvent(event *pipeline.Event) bool
- func (p *Plugin) SetCommitFn(fn func(event *pipeline.Event))
- func (p *Plugin) SetInFn(fn func())
- func (p *Plugin) Start(_ pipeline.AnyConfig, params *pipeline.InputPluginParams)
- func (p *Plugin) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { plugin.NoMetricsPlugin // contains filtered or unexported fields }
func (*Plugin) SetCommitFn ¶
> It sets up a hook to make sure the test event has been successfully committed.
func (*Plugin) SetInFn ¶
func (p *Plugin) SetInFn(fn func())
> It sets up a hook to make sure the test event has been passed to the plugin.
Click to show internal directories.
Click to hide internal directories.