matcher

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputMatcher

type InputMatcher interface {
	// contains filtered or unexported methods
}

InputMatcher is the interface for a matcher implementation, specifying how an input string should be matched.

type MatcherTree

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

MatcherTree is the constructed match tree, allowing for matching input data against the match tree.

func Create

func Create(matcher *pbmatcher.Matcher) (*MatcherTree, error)

Create creates a new match tree from the provided match tree configuration.

func CreateLegacy

func CreateLegacy(matcher *pblegacymatcher.Matcher) (*MatcherTree, error)

CreateLegacy creates a new match tree from the provided match tree configuration, specified by the legacy format.

func (MatcherTree) Match

func (m MatcherTree) Match(data types.MatchingData) (types.Result, error)

Match attempts to match the input data against the match tree. An error is returned if something went wrong during match evaluation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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