initial commit

This commit is contained in:
2025-03-05 00:30:53 +01:00
commit 9da7b99e5d
32 changed files with 4541 additions and 0 deletions

21
handler/handler.go Normal file
View File

@@ -0,0 +1,21 @@
package handler
import (
"git.coopgo.io/coopgo-platform/routing-service"
"git.coopgo.io/coopgo-platform/solidarity-transport/storage"
"github.com/spf13/viper"
)
type Handler struct {
Config *viper.Viper
Storage storage.Storage
Routing routing.RoutingService
}
func NewSolidarityTransportHandler(cfg *viper.Viper, store storage.Storage, routing routing.RoutingService) (*Handler, error) {
return &Handler{
Config: cfg,
Storage: store,
Routing: routing,
}, nil
}