Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct { // > @3@4@5@6 // > // > Values to match at least one value. Values []string `json:"values" default:"" slice:"true"` // * // > @3@4@5@6 // > // > Matching mode. Allowed modes: `prefix`, `contains`, `suffix`. Defaults to `contains`. Mode Mode `json:"mode"` // * // > @3@4@5@6 // > // > CaseInsensitive is the truth then Match results in a lowercase search value. // > Not available fo the ModeContains because performance issues may arise. CaseInsensitive bool `json:"case_insensitive"` // * // > @3@4@5@6 // > // > Flag indicating whether to negate the result of matching rule. Invert bool `json:"invert"` // * // contains filtered or unexported fields }
type RuleSet ¶
type RuleSet struct { // > @3@4@5@6 // > // > Name of the ruleset. Name string `json:"name"` // * // > @3@4@5@6 // > // > Condition for combining rules. Allowed values: `and`, `or`. Defaults to `and`. Cond Cond `json:"cond" default:"and" options:"and|or"` // * // > @3@4@5@6 // > // > List of rules to check. Rules []Rule `json:"rules" default:"" slice:"true"` // * }
Click to show internal directories.
Click to hide internal directories.