api/pkg/audit/event.go

26 lines
433 B
Go
Raw Normal View History

2020-12-30 16:03:01 +00:00
package audit
import (
"net"
"time"
"google.golang.org/protobuf/proto"
)
type EventDetails interface {
ProtoMessage() proto.Message
}
type Event struct {
ID int64
Timestamp time.Time
Transport TransportProtocol
Application AppProtocol
SourceIP net.IP
DestinationIP net.IP
SourcePort uint16
DestinationPort uint16
ProtocolDetails EventDetails
TLS *TLSDetails
}