package
Version:
v0.0.0-...-35ec728
Opens a new window with list of versions in this module.
Published: Nov 16, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Document struct {
Index string
Doc interface{}
}
type Element struct {
Elem string `json:"elem"`
Arg map[string]interface{} `json:"arg"`
}
type KafkaData struct {
SensorID int `json:"sensor_id"`
NodeID int `json:"node_id"`
Values []float64 `json:"values"`
Timestamp time.Time `json:"timestamp"`
}
type Location struct {
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
}
type Logic struct {
ID int `json:"id"`
LogicName string `json:"logic_name"`
Elems []Element `json:"elems"`
SensorID int `json:"sensor_id"`
}
type LogicData struct {
SensorID int `json:"sensor_id"`
SensorName string `json:"sensor_name"`
Values map[string]float64 `json:"values"`
Node Node `json:"node"`
Timestamp time.Time `json:"timestamp"`
}
type Node struct {
Name string `json:"name"`
Location Location `json:"location"`
SinkName string `json:"sink_name"`
}
type Sensor struct {
Name string `json:"name"`
SensorValues []string `json:"sensor_values"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.