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

23
services/carpool.go Normal file
View File

@@ -0,0 +1,23 @@
package services
import (
"git.coopgo.io/coopgo-platform/carpool-service/servers/grpc/proto"
"google.golang.org/grpc"
)
type CarpoolService struct {
proto.CarpoolServiceClient
}
func NewCarpoolService(dial string) (*CarpoolService, error) {
conn, err := grpc.Dial(dial, grpc.WithInsecure())
client := proto.NewCarpoolServiceClient(conn)
if err != nil {
return nil, err
}
return &CarpoolService{
CarpoolServiceClient: client,
}, nil
}