package
Version:
v0.0.0-...-1e04dac
Opens a new window with list of versions in this module.
Published: Aug 25, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
type Bike struct {
ID string `json:"id"`
Status int `json:"status"`
Location Location `json:"location"`
}
Bike model.
type Location struct {
Type string `json:"type"`
Coordinates []float64 `json:"coordinates"`
}
Location model.
CreateLocation creates a location from given latitude and longitude.
type Trip struct {
ID string `json:"id"`
Status int `json:"status"`
BikeID string `json:"bike_id"`
Locations []Location `json:"locations"`
StartedAt time.Time `json:"started_at"`
EndedAt *time.Time `json:"ended_at"`
}
Trip model.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.