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 }
Click to show internal directories.
Click to hide internal directories.