From f70a7eeab55db226883d957e3b1e0eb6a6d4d035 Mon Sep 17 00:00:00 2001 From: Daniel Langesten Date: Thu, 19 Mar 2015 15:07:56 +0100 Subject: fixed raw data struct so that encoding/json can prase into it --- datastructs.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'datastructs.go') diff --git a/datastructs.go b/datastructs.go index f8887ef..1c088e3 100644 --- a/datastructs.go +++ b/datastructs.go @@ -5,15 +5,15 @@ import ( ) 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 + Ip_src string `json:ip_src` + Ip_dst string `json:ip_dst` + As_src int `json:as_src` + As_dst int `json:as_dst` + Port_src int `json:port_src` + Port_dst int `json:port_dst` + Packets int `json:packets` + Pkt_len_distrib string `json:pkt_len_distrib` + time time.Time } type cleanedData struct { -- cgit v1.1