blob: 3c22a9a77805493d79e92ff59508c2447355f039 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package main
import "time"
type Connection struct {
ID RowID `json:"id" bson:"_id"`
SourceIP string `json:"ip_src" bson:"ip_src"`
DestinationIP string `json:"ip_dst" bson:"ip_dst"`
SourcePort uint16 `json:"port_src" bson:"port_src"`
DestinationPort uint16 `json:"port_dst" bson:"port_dst"`
StartedAt time.Time `json:"started_at" bson:"started_at"`
ClosedAt time.Time `json:"closed_at" bson:"closed_at"`
ClientPackets int `json:"client_packets" bson:"client_packets"`
ServerPackets int `json:"server_packets" bson:"server_packets"`
ClientBytes int `json:"client_bytes" bson:"client_bytes"`
ServerBytes int `json:"server_bytes" bson:"server_bytes"`
ClientDocuments int `json:"client_documents" bson:"client_documents"`
ServerDocuments int `json:"server_documents" bson:"server_documents"`
ProcessedAt time.Time `json:"processed_at" bson:"processed_at"`
MatchedRules []RowID `json:"matched_rules" bson:"matched_rules"`
}
|