initial commit 2

This commit is contained in:
Senad Uka
2018-04-25 13:16:36 +02:00
parent c1520d169c
commit 99c10b75fb
167 changed files with 25057 additions and 0 deletions

28
domain/service/tnc.go Normal file
View File

@@ -0,0 +1,28 @@
package service
// tncService is the domain service for transportation network operations
type tncService struct {
svc *Service
}
// newTncService returns an instance of tncService
func newTncService(svc *Service) *tncService {
return &tncService{
svc: svc,
}
}
//GetETA will return the list of ETA's for the current location
func (s *tncService) GetETA(lag float64, log float64, params map[string]interface{}) (interface{}, error) {
return s.svc.tnc.GetETA(lag, log, params)
}
//GetDrivers return the drivers for the current location
func (s *tncService) GetDrivers(lag float64, log float64) (interface{}, error) {
return s.svc.tnc.GetDrivers(lag, log)
}
//GetTypes will return the available types of ride for the current location
func (s *tncService) GetTypes(lag float64, log float64, params map[string]interface{}) (interface{}, error) {
return s.svc.tnc.GetTypes(lag, log, params)
}