Documentation ¶
Index ¶
- func GetCoordinates(address string) (float64, float64)
- func GetEstimatedTime(startLat float64, startLng float64) int
- func GetEstimates(startLat float64, startLng float64, endLat float64, endLng float64) (int, int, float64)
- type LocationController
- func (lc LocationController) AddLocation(w http.ResponseWriter, r *http.Request)
- func (lc LocationController) DeleteLocation(w http.ResponseWriter, r *http.Request)
- func (lc LocationController) GetLocation(w http.ResponseWriter, r *http.Request)
- func (lc LocationController) UpdateLocation(w http.ResponseWriter, r *http.Request)
- type UberController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoordinates ¶
func GetEstimatedTime ¶
Types ¶
type LocationController ¶
type LocationController struct {
// contains filtered or unexported fields
}
func NewLocationController ¶
func NewLocationController(s *mgo.Session) *LocationController
func (LocationController) AddLocation ¶
func (lc LocationController) AddLocation(w http.ResponseWriter, r *http.Request)
func (LocationController) DeleteLocation ¶
func (lc LocationController) DeleteLocation(w http.ResponseWriter, r *http.Request)
func (LocationController) GetLocation ¶
func (lc LocationController) GetLocation(w http.ResponseWriter, r *http.Request)
func (LocationController) UpdateLocation ¶
func (lc LocationController) UpdateLocation(w http.ResponseWriter, r *http.Request)
type UberController ¶
type UberController struct {
// contains filtered or unexported fields
}
func NewUberController ¶
func NewUberController(s *mgo.Session) *UberController
func (UberController) AddTrip ¶
func (uc UberController) AddTrip(w http.ResponseWriter, r *http.Request)
func (UberController) GetTrip ¶
func (uc UberController) GetTrip(w http.ResponseWriter, r *http.Request)
func (UberController) RequestTrip ¶
func (uc UberController) RequestTrip(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.