Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
func New ¶
func New(options ...EventOptionFunc) *Event
New returns a new Event object with the specified options applied
func (*Event) Role ¶ added in v0.46.0
func (e *Event) Role() plugin.PluginType
Role identifies this plugin as a pipeline filter.
func (*Event) StartContext ¶ added in v0.46.0
StartContext starts the plugin with ctx governing setup and run operations. Call Stop to wait for workers and release resources, including after cancellation.
type EventOptionFunc ¶
type EventOptionFunc func(*Event)
func WithLogger ¶
func WithLogger(logger plugin.Logger) EventOptionFunc
WithLogger specifies the logger object to use for logging messages
func WithTypes ¶
func WithTypes(eventTypes []string) EventOptionFunc
WithTypes specfies the event types to filter on