MCPcopy
hub / github.com/evilsocket/opensnitch / NewEvent

Function NewEvent

daemon/statistics/event.go:17–23  ·  view source on GitHub ↗
(con *conman.Connection, match *rule.Rule)

Source from the content-addressed store, hash-verified

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

Callers 1

onConnectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected