identification

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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