solidarity-service/handler/handler.go

22 lines
501 B
Go
Raw Permalink Normal View History

2023-10-20 11:41:39 +00:00
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
}