Markus Pesch
fb8d4dd5eb
changes: - Remove cli Some cli commands are not complete tested and are deprecated. - Daemon - Old version has a very bad implementation of how to verify, if the device or the sensors are in the database insert. The current implementation can be improved but this one is betten then the old one. - Remove complete the cache store implementation. Use a normal array and query the length and capacity to determine how the array cache must be cleaned. - Type Remove unused types and functions
20 lines
725 B
Go
20 lines
725 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// MeasuredValue represent a value provided by a measuring instrument. For
|
|
// example from a sensor. It can contains different types, for example humidity
|
|
// or temperature.
|
|
type MeasuredValue struct {
|
|
ID string `json:"id" xml:"id"`
|
|
Value float64 `json:"value,string" xml:"value,string"`
|
|
ValueType string `json:"value_type" xml:"value_type"`
|
|
FromDate time.Time `json:"from_date" xml:"from_date"`
|
|
TillDate time.Time `json:"till_date" xml:"till_date"`
|
|
SensorID string `json:"sensor_id" xml:"sensor_id"`
|
|
CreationDate *time.Time `json:"creation_date" xml:"creation_date"`
|
|
UpdateDate *time.Time `json:"update_date" xml:"update_date"`
|
|
}
|