controllers

package
v0.0.0-...-af404fd Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidDriverID

func ValidDriverID(id int64) bool

Types

type DriverController

type DriverController struct {
	// contains filtered or unexported fields
}

func NewDriverController

func NewDriverController(s *mgo.Session) *DriverController

func (*DriverController) FetchDrivers

func (dc *DriverController) FetchDrivers(r render.Render, req *http.Request)

func (*DriverController) SaveDriverLocation

func (dc *DriverController) SaveDriverLocation(r render.Render, req *http.Request, params martini.Params)

type DriverResponse

type DriverResponse struct {
	Latitude  float64
	Longitude float64
	ID        int64
	Distance  float64
}

type DriversRequestWrapper

type DriversRequestWrapper struct {
	Latitude  float64
	Longitude float64
	Limit     int64
	Radius    int64
}

type ErrorResponse

type ErrorResponse struct {
	Errors []string `json:"errors"`
}

Jump to

Keyboard shortcuts

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