package handler import ( "git.coopgo.io/coopgo-platform/carpool-service/storage" "git.coopgo.io/coopgo-platform/carpool-service/tiles" "git.coopgo.io/coopgo-platform/routing-service" "github.com/spf13/viper" ) type CarpoolServiceHandler struct { Config *viper.Viper Storage storage.Storage Tiles *tiles.TilesHandler Routing routing.RoutingService } func NewCarpoolServiceHandler(cfg *viper.Viper, storage storage.Storage, tilesHandler *tiles.TilesHandler, routing routing.RoutingService) (*CarpoolServiceHandler, error) { return &CarpoolServiceHandler{ Config: cfg, Storage: storage, Tiles: tilesHandler, Routing: routing, }, nil }