controllers

package
v0.0.0-...-64e0446 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCoordinates

func GetCoordinates(address string) (float64, float64)

func GetEstimatedTime

func GetEstimatedTime(startLat float64, startLng float64) int

func GetEstimates

func GetEstimates(startLat float64, startLng float64, endLat float64, endLng float64) (int, int, float64)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL