NewRule creates a Rule instance.
(exprID int64)
| 175 | |
| 176 | // NewRule creates a Rule instance. |
| 177 | func NewRule(exprID int64) *Rule { |
| 178 | return &Rule{ |
| 179 | exprID: exprID, |
| 180 | variables: []*Variable{}, |
| 181 | matches: []*Match{}, |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // Rule declares a rule identifier, description, along with a set of variables and match statements. |
| 186 | type Rule struct { |