create driver
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
mobilityaccounts "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi"
|
||||
routing "git.coopgo.io/coopgo-platform/routing-service"
|
||||
solidarityservice "git.coopgo.io/sbouaram/solidarity-service/servers/grpc/proto"
|
||||
|
||||
"github.com/spf13/viper"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
@@ -21,6 +22,7 @@ type GRPCServices struct {
|
||||
Fleets fleets.FleetsClient
|
||||
Agenda agenda.AgendaClient
|
||||
SolidarityService solidarityservice.SolidarityServiceClient
|
||||
|
||||
Routing routing.RoutingService
|
||||
}
|
||||
|
||||
@@ -59,6 +61,8 @@ func NewServicesHandler(cfg *viper.Viper) (*ServicesHandler, error) {
|
||||
return nil , err
|
||||
}
|
||||
|
||||
|
||||
|
||||
routing, err := routing.NewRoutingService(routing_service_type, valhalla_base_url)
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("Could not initiate the routing service")
|
||||
|
||||
Reference in New Issue
Block a user