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

Struct JSONEventFormat

daemon/log/formats/json.go:23–28  ·  view source on GitHub ↗

JSONEventFormat object to be sent to the remote service. TODO: Expand as needed: ebpf events, etc.

Source from the content-addressed store, hash-verified

21// JSONEventFormat object to be sent to the remote service.
22// TODO: Expand as needed: ebpf events, etc.
23type JSONEventFormat struct {
24 Event interface{} `json:"Event"`
25 Rule string `json:"Rule"`
26 Action string `json:"Action"`
27 Type uint8 `json:"Type"`
28}
29
30// NewJSON returns a new Json format, to send events as json.
31// The json is the protobuffer in json format.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected