package
Version:
v0.0.0-...-b412545
Opens a new window with list of versions in this module.
Published: Aug 31, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type GeoJSON struct {
Type string `json:"-"`
Coordinates []float64 `json:"coordinates"`
}
type RectangularQueryResultItem struct {
ScooterID string `bson:"_id" json:"scooterID"`
Status string `bson:"status" json:"status"`
LastUpdate time.Time `bson:"timestamp" json:"lastStatus"`
Location Location `bson:"location" json:"location"`
}
type Scooter struct {
ID string `bson:"_id" json:"ID"`
InUse bool `bson:"inuse" json:"inuse"`
}
type ScooterStatus struct {
ID string `bson:"_id,omitempty"`
ScooterID string `bson:"scooterID"`
Status string `bson:"status"`
Timestamp time.Time `bson:"timestamp"`
Location GeoJSON `bson:"location"`
EventType string `bson:"eventType"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.