summaryrefslogtreecommitdiff
path: root/datastructs.go
diff options
context:
space:
mode:
authorDaniel Langesten <daniel.langest@gmail.com>2015-03-18 14:53:49 +0100
committerDaniel Langesten <daniel.langest@gmail.com>2015-03-18 14:53:49 +0100
commitaf80532aa7ee6c313a63a0a83af43e6e64128027 (patch)
tree27e0473faec90d2e5f7f6b65d17fee7bcc31e055 /datastructs.go
parent76c6a956aef78457309122a14c10541ffe2e7434 (diff)
added support for cleaning json data from stdin
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 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
}