From official website Go gRPC, we can generate gRPC code using protoc
with a .proto
file. And then we can setup server and send gRPC request.
But now I want to send gRPC request to an any gRPC server with a specified '.proto' file. So I should parse the .proto
file and then send gRPC request to that gRPC server.
Could any one know how to realize it?
Thank you very much!
CodePudding user response:
You probably want to generate a client anyways. The beauty of grpc is static typing. I found this library, not sure if it is what you are looking for. I don't think that go supports dynamic libraries yet here, so I'm not sure how easy this is to implement.