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) SetDropObserver ¶ added in v0.47.0
func (e *Event) SetDropObserver(observer func())
SetDropObserver records events rejected by this filter. Configure before Start.
func (*Event) SetPipelineDropObserver ¶ added in v0.47.0
func (e *Event) SetPipelineDropObserver( observer func(), )
SetPipelineDropObserver records rejected events for the owning pipeline. Configure before Start; replacing the callback keeps restarts idempotent.
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
type Matcher ¶ added in v0.47.0
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is an immutable set of event types, safe for concurrent reads.