identification

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchFunc

type MatchFunc func(data map[string]interface{}, matcher *matchers.Matcher) (bool, []string)

type Operators

type Operators struct {
	Name              string              `yaml:"name"`
	Matchers          []*matchers.Matcher `yaml:"matchers"`
	MatchersCondition string              `yaml:"matchers-condition"`
	Request           []*request.Request  `yaml:"request"`
	StopAtFirstMatch  bool                `yaml:"stop-at-first-match"`
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(path string) ([]*Operators, error)

func (*Operators) Compile

func (operators *Operators) Compile() error

func (*Operators) Execute

func (operators *Operators) Execute(data map[string]interface{}, match MatchFunc) ([]string, bool)

func (*Operators) GetMatchersCondition

func (operators *Operators) GetMatchersCondition() matchers.ConditionType

GetMatchersCondition returns the condition for the matchers

func (*Operators) LoadConfigFrom

func (operators *Operators) LoadConfigFrom(location string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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