Markus Pesch
43e9d00dcb
changes: - Implement repository test for the sqlite backend - Add testutils package to start container images - Remove deprecated till_date in measured values - Renamed columns of the table humidities, pressures and temperatures
12 lines
323 B
Go
12 lines
323 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"`
|
|
CreationDate time.Time `json:"creation_date" xml:"creation_date"`
|
|
}
|