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
13 lines
393 B
Go
13 lines
393 B
Go
package types
|
|
|
|
import "time"
|
|
|
|
// Device represent a device with all his settings.
|
|
type Device struct {
|
|
ID string `json:"id" xml:"id"`
|
|
Name string `json:"name" xml:"name"`
|
|
Location *string `json:"location" xml:"location"`
|
|
LastContact *time.Time `json:"last_contact" xml:"last_contact"`
|
|
CreationDate time.Time `json:"creation_date" xml:"creation_date"`
|
|
}
|