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: 5
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 KafkaData struct {
Key string `json:"key"`
Value SensorData `json:"value"`
}
type LogicData struct {
SID string `json:"s_id"`
SName string `json:"name"`
Values map[string]float64 `json:"values"`
NodeInfo Node `json:"node"`
Timestamp time.Time `json:"timestamp"`
}
type Node struct {
Name string `json:"name"`
Group string `json:"group"`
Location Loc `json:"location"`
}
type Ring struct {
Id primitive.ObjectID `bson:"_id" json:"id,omitempty"`
Sensor string `json:"sensor_uuid"`
LogicName string `json:"logic_name"`
Logic []struct {
Elem string `json:"elem"`
Arg map[string]interface{} `json:"arg"`
} `json:"logic"`
}
type RingRequest struct {
Sensor string `json:"sensor_uuid"`
LogicName string `json:"logic_name"`
Logic []struct {
Elem string `json:"elem"`
Arg map[string]interface{} `json:"arg"`
} `json:"logic"`
}
type Sensor struct {
Name string `json:"name"`
ValueNames []string `json:"value_names"`
}
type SensorData struct {
NID string `json:"nid"`
Values []float64 `json:"values"`
Timestamp time.Time `json:"timestamp"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.