summaryrefslogtreecommitdiff
path: root/datastructs.go
diff options
context:
space:
mode:
authorDaniel Langesten <daniel.langest@gmail.com>2015-03-19 15:07:56 +0100
committerDaniel Langesten <daniel.langest@gmail.com>2015-03-19 15:07:56 +0100
commitf70a7eeab55db226883d957e3b1e0eb6a6d4d035 (patch)
treefb544deb0db276d45fc93c296ef1e2351822c94f /datastructs.go
parent8ae9773aed9d843312c6435ab44662b4132efd4e (diff)
fixed raw data struct so that encoding/json can prase into it
Diffstat (limited to 'datastructs.go')
-rw-r--r--datastructs.go18
1 files changed, 9 insertions, 9 deletions
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 {