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