(con *conman.Connection, match *rule.Rule)
| 15 | } |
| 16 | |
| 17 | func NewEvent(con *conman.Connection, match *rule.Rule) *Event { |
| 18 | return &Event{ |
| 19 | Time: time.Now(), |
| 20 | Connection: con, |
| 21 | Rule: match, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func (e *Event) Serialize() *protocol.Event { |
| 26 | return &protocol.Event{ |