hitPolicy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ErrDecisionTableUnknownHitPolicy = "unknown hit policy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HitPolicy

type HitPolicy string
const (
	Unique   HitPolicy = "unique"   // Rules do not overlap. Only a single rule can match.
	First    HitPolicy = "first"    // Rules are evaluated from top to bottom. Rules may overlap, but only the first match counts.
	Priority HitPolicy = "priority" // Rule outputs are prioritized. Rules may overlap, but only the match with the highest output priority counts.
	Any      HitPolicy = "any"      // Multiple matching rules must not make a difference: all matching rules must lead to the same output.
)

Single result decision tables

const (
	Collect     HitPolicy = "collect"     // All matching rules result in an arbitrarily ordered list of all the output entries.
	RuleOrder   HitPolicy = "ruleOrder"   // All matching rules result in a list of outputs ordered by the sequence of those rules in the decision table.
	OutputOrder HitPolicy = "outputOrder" // All matching rules result in a list of outputs ordered by their (decreasing) output priority.
)

Multiple result decision tables

func (*HitPolicy) UnmarshalJSON

func (hp *HitPolicy) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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