driverInterface

package
v0.0.0-...-14e87fa Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverInterfacce

type DriverInterfacce interface {
	GetConn(mongoSession *mgo.Session, redsiConn *redis.Client)
	Insert(collectionName string, name string, lat, lon float64, status bool)
	Find(name string) *driver.DriverData

	Update(city, idDistrict string, driverData driver.DriverData) error

	GetNearLocation(distance int64, lat, lon float64) []driver.DriverData
	GetAvailableDriver(city, IdDistrict string) []driver.DriverData
	Remove(idDriver, collectionKey string)

	// REDIS
	SaveDriversRedis(drivers []driver.DriverData, city, idDistrict string)
	DriversRedis(city, idDistrict string) []driver.DriverData
	SaveLastDistrict(idDriver, city, idDistrict string)
	GetLastDistrict(idDriver string) string
}

Jump to

Keyboard shortcuts

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