Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dive ¶
type Dive struct { SensorID string `json:"sensorId" firestore:"sensorId,omitempty"` StartTime time.Time `json:"startTime" firestore:"startTime,omitempty"` EndTime time.Time `json:"duration" firestore:"endTime,omitempty"` StartPoint GeoPoint `json:"startPoint" firestore:"startPoint,omitempty"` EndPoint GeoPoint `json:"endPoint" firestore:"endPoint,omitempty"` SensorData []*SensorData `json:"sensorData" firestore:"sensorData,omitempty"` }
Dive is a dive
type DiveImplementation ¶
type DiveImplementation struct {
// contains filtered or unexported fields
}
DiveImplementation is an object for CRUD operations on dives
type DiveInterface ¶
DiveInterface is an interface for interacting with dive results
func NewDiveImplementation ¶
func NewDiveImplementation(client wrapper.DBClientInterface) DiveInterface
NewDiveImplementation will return an object for working with dives
type SensorData ¶
type SensorData struct { Depth float64 `json:"depth"` RawPressure int `json:"rawPressure"` RawTemp int `json:"rawTemp"` Temp float64 `json:"temp"` Time int `json:"time"` }
func MapSensorData ¶
func MapSensorData(data map[string]interface{}) SensorData
MapSensorData will convert map to SensorData object
Click to show internal directories.
Click to hide internal directories.