Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upload ¶
type Upload struct { ID uint `json:"id"` DeviceID uint `json:"device_id"` ServerTime twomes.Time `json:"server_time"` DeviceTime twomes.Time `json:"device_time"` Size int `json:"size"` Measurements []measurement.Measurement `json:"measurements,omitempty"` }
An Upload is a collection of measurements, with additional information.
func MakeUpload ¶
func MakeUpload(deviceID uint, deviceTime twomes.Time, measurements []measurement.Measurement) Upload
Create a new Upload.
Click to show internal directories.
Click to hide internal directories.