solidarity transport updates

This commit is contained in:
Arnaud Delcasse
2025-09-09 05:47:56 +02:00
parent 95b60ea737
commit 9ab7b66b68
40 changed files with 3240 additions and 601 deletions

View File

@@ -0,0 +1,23 @@
package services
import (
"git.coopgo.io/coopgo-platform/solidarity-transport/servers/grpc/proto/gen"
"google.golang.org/grpc"
)
type SolidarityTransportService struct {
gen.SolidarityTransportClient
}
func NewSolidarityTransportService(dial string) (*SolidarityTransportService, error) {
conn, err := grpc.Dial(dial, grpc.WithInsecure())
client := gen.NewSolidarityTransportClient(conn)
if err != nil {
return nil, err
}
return &SolidarityTransportService{
SolidarityTransportClient: client,
}, nil
}