Discover Packages
github.com/untoldwind/gotrack
server
store
package
Version:
v0.0.0-...-8938f7c
Opens a new window with list of versions in this module.
Published: Dec 28, 2015
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Connection struct {
Protocol string `json:"protocol"`
SrcPort uint16 `json:"src_port"`
DestHost string `json:"dst_host"`
DestPort uint16 `json:"dst_port"`
Totals Entry `json:"totals"`
}
type Device struct {
Name string `json:"name"`
MacAddress string `json:"mac_address"`
IpAddress string `json:"ip_address"`
ConnectionCount int `json:"connection_count"`
Totals Entry `json:"totals"`
Rate5Sec Entry `json:"rate_5sec"`
}
type DeviceDetails struct {
Device
Connections []*Connection `json:"connections"`
}
type Entry struct {
BytesIn uint64 `json:"bytes_in"`
PacketsIn uint64 `json:"packets_in"`
BytesOut uint64 `json:"bytes_out"`
PacketsOut uint64 `json:"packets_out"`
}
type Rates struct {
Rate5Sec Entry `json:"rate_5sec"`
}
type Span struct {
Start time .Time `json:"start"`
End time .Time `json:"end"`
CurrentIdx int `json:"current_idx"`
Max Entry `json:"max"`
Deltas []Entry `json:"deltas"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.