patternTree

package
v0.0.0-...-dfa5485 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Example

func Example()

Example usage

Types

type PatternNode

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

PatternNode represents a node in the pattern tree

type PatternTree

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

func NewPatternTree

func NewPatternTree() *PatternTree

func (*PatternTree) AddPattern

func (tree *PatternTree) AddPattern(pattern string)

AddPattern adds a pattern to the tree

func (*PatternTree) Matches

func (tree *PatternTree) Matches(eventType string) bool

Matches checks if an event type matches any pattern in the tree with caching

func (*PatternTree) MatchesPattern

func (tree *PatternTree) MatchesPattern(pattern, eventType string) bool

MatchesPattern checks if an event matches a specific pattern

Jump to

Keyboard shortcuts

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