package
Version:
v0.0.0-...-c42e73f
Opens a new window with list of versions in this module.
Published: Sep 9, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type KafkaData struct {
Key string `json:"key"`
Value SensorData `json:"value"`
}
type MetaInfo struct {
NInfo []Node `json:"node_info"`
SInfo []Sensor `json:"sensor_info"`
}
type Node struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Group string `json:"group"`
Location struct {
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
} `json:"location"`
}
type Sensor struct {
UUID string `json:"uuid"`
Name string `json:"name"`
ValueList []SensorValue `json:"value_list"`
}
type SensorData struct {
NID string `json:"nid"`
Values []float64 `json:"values"`
Timestamp string `json:"timestamp"`
}
type SensorValue struct {
SensorUUID string `json:"sensor_uuid"`
ValueName string `json:"value_name"`
Index int `json:"index"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.