comparison

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparison

type Comparison struct {
	Equal    []map[string]interface{} `json:"equal,omitempty"`
	NotEqual []map[string]interface{} `json:"notEqual,omitempty"`
}

type ComparisonTreeNode added in v0.9.0

type ComparisonTreeNode struct {
	Logic      string                `json:"logic,omitempty"` // and, or
	Comparison *Comparison           `json:"comparison,omitempty"`
	ChildNodes []*ComparisonTreeNode `json:"childNodes,omitempty"`
}

type Matcher

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

func NewMatcher

func NewMatcher(comparisonTree *ComparisonTreeNode, comparison *Comparison, patternsLogic string) (*Matcher, error)

func (*Matcher) Match

func (m *Matcher) Match(event event.Event) bool

Jump to

Keyboard shortcuts

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