NewRule creates a Rule instance.
(exprID int64)
| 193 | |
| 194 | // NewRule creates a Rule instance. |
| 195 | func NewRule(exprID int64) *Rule { |
| 196 | return &Rule{ |
| 197 | exprID: exprID, |
| 198 | variables: []*Variable{}, |
| 199 | matches: []*Match{}, |
| 200 | semantic: unspecified, |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | // Rule declares a rule identifier, description, along with a set of variables and match statements. |
| 205 | type Rule struct { |
no outgoing calls