()
| 68 | } |
| 69 | |
| 70 | func (r *Rule) String() string { |
| 71 | enabled := "Disabled" |
| 72 | if r.Enabled { |
| 73 | enabled = "Enabled" |
| 74 | } |
| 75 | return fmt.Sprintf("[%s] %s: if(%s){ %s %s }", enabled, r.Name, r.Operator.String(), r.Action, r.Duration) |
| 76 | } |
| 77 | |
| 78 | // Match performs on a connection the checks a Rule has, to determine if it |
| 79 | // must be allowed or denied. |
no outgoing calls