matcher

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventMatcher

type EventMatcher struct {
	// contains filtered or unexported fields
}

func New

func New() *EventMatcher

func (*EventMatcher) AddRoutes

func (m *EventMatcher) AddRoutes(routes ...*core.Route) error

func (*EventMatcher) Match

func (m *EventMatcher) Match(evt *core.Event) (*core.Route, bool)

type EventPredicate

type EventPredicate func(e *core.Event) bool

Takes an Event and returns true or false if rule matches.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL