driverMock

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: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverDataMock

type DriverDataMock struct {
	Drivers      []driver.DriverData
	Driver       driver.DriverData
	Err          error
	LastDistrict string
}

func (*DriverDataMock) DriversRedis

func (d *DriverDataMock) DriversRedis(city, idDistrict string) []driver.DriverData

func (*DriverDataMock) Find

func (d *DriverDataMock) Find(name string) *driver.DriverData

func (*DriverDataMock) GetAvailableDriver

func (d *DriverDataMock) GetAvailableDriver(city, IdDistrict string) []driver.DriverData

returning available driver

func (*DriverDataMock) GetConn

func (d *DriverDataMock) GetConn(mongoSession *mgo.Session, redisConnection *redis.Client)

===================MongoDB====================//

func (*DriverDataMock) GetLastDistrict

func (d *DriverDataMock) GetLastDistrict(driverId string) string

func (*DriverDataMock) GetNearLocation

func (d *DriverDataMock) GetNearLocation(distance int64, lat, lon float64) []driver.DriverData

func (*DriverDataMock) Insert

func (d *DriverDataMock) Insert(collecctionName, name string, lat, lon float64, status bool)

func (*DriverDataMock) Remove

func (d *DriverDataMock) Remove(idDriver, collectionKey string)

func (*DriverDataMock) SaveDriversRedis

func (d *DriverDataMock) SaveDriversRedis(drivers []driver.DriverData, city, idDistrict string)

func (*DriverDataMock) SaveLastDistrict

func (d *DriverDataMock) SaveLastDistrict(idDriver, city, idDistrict string)

func (*DriverDataMock) Update

func (d *DriverDataMock) Update(city, idDistrict string, driver driver.DriverData) error

Jump to

Keyboard shortcuts

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