Add tiles management
This commit is contained in:
@@ -2,17 +2,23 @@ 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) (*CarpoolServiceHandler, error) {
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user