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: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type KafkaData struct {
SensorID int `json:"sensor_id"`
NodeID int `json:"node_id"`
Values []float64 `json:"values"`
Timestamp string `json:"timestamp"`
}
type Logic struct {
ID int `json:"id"`
Name string `json:"name"`
Elems string `json:"elems"`
SensorID int `json:"sensor_id"`
}
type LogicService struct {
Addr string `json:"addr"`
Topic Topic `json:"topic"`
}
type Node struct {
ID int `json:"id"`
Name string `json:"name"`
LocLat float64 `json:"lat"`
LocLon float64 `json:"lng"`
SinkID int `json:"sink_id"`
Sink Sink `json:"sink"`
Sensors []Sensor `json:"sensors"`
}
type Sensor struct {
ID int `json:"id"`
Name string `json:"name"`
SensorValues []SensorValue `json:"sensor_values"`
Logics []Logic `json:"logics"`
}
type SensorValue struct {
SensorID int `json:"sensor_id"`
ValueName string `json:"value_name"`
Index int `json:"index"`
}
type Sink struct {
ID int `json:"id"`
Name string `json:"name"`
Addr string `json:"addr"`
Nodes []Node `json:"nodes"`
}
type Topic struct {
Name string `json:"name"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.