diff options
Diffstat (limited to 'datastructs.go')
-rw-r--r-- | datastructs.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/datastructs.go b/datastructs.go index 8220c62..f8887ef 100644 --- a/datastructs.go +++ b/datastructs.go @@ -4,15 +4,15 @@ import ( "time" ) -type rawData struct { - ipSrc string - ipDst string - asSrc int - asDst int - portSrc int - portDst int - packets int - pktLenDist string +type RawData struct { + IpSrc string `json:ip_src` + IpDst string `json:ip_dst` + AsSrc int `json:as_src` + AsDst int `json:as_dst` + PortSrc int `json:port_src` + PortDst int `json:port_dst` + Packets int `json:packets` + PktLenDist string `json:pkt_len_distrib` time time.Time } |