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 }