Is there a way to configure the name of the generation method for the grpc-node client?

I hope to use the client grpc-nodeto talk to the microservice built in Gousing the structure go-micro. I ran into a problem when go-microdefining method names using periods ( .) to separate namespaces from method names, while grpc-nodeslashes ( /). Is there anyway to customize this template so that these two processes talk to each other?

0
source share
1 answer

gRPC using the HTTP / 2 protocol determines that the path is constructed as follows:

→ ": " "/" "/" { }

gRPC , , . gRPC , , , (, ) , , .

, Node gRPC , , go-micro, (). .

gRPC Node. .proto Node, service, JavaScript-, . , path. , , go-micro, grpc.makeGenericClientConstructor, , .

+1

Source: https://habr.com/ru/post/1695305/


All Articles