solidarity-service/handler/handler.go

22 lines
501 B
Go

package handler
import (
"git.coopgo.io/coopgo-platform/routing-service"
"github.com/spf13/viper"
"solidarity-service/storage"
)
type SolidarityServiceHandler struct {
Config *viper.Viper
Routing routing.RoutingService
Storage storage.Storage
}
func NewSolidarityServiceHandler(cfg *viper.Viper, routing routing.RoutingService, storage storage.Storage) (*SolidarityServiceHandler, error) {
return &SolidarityServiceHandler{
Config: cfg,
Routing: routing,
Storage: storage,
}, nil
}