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.
Click to show internal directories.
Click to hide internal directories.