I am working on a grpc server and keep getting messages like "target server does not expose service (service name)" even though I think the name is correct. Is there a way (in development) to send a message asking the grpc server to just output all possible services it exposes and messages it accepts? This would help with debugging.
Is there a command to send a grpc Go lang server to have it output all possible messages it accepts?
Asked
Active
Viewed 1,293 times
1 Answers
1
What you're looking for is called server reflection. Luckily, this has been implemented in grpc go, and you can find a tutorial here:
https://github.com/grpc/grpc-go/blob/master/Documentation/server-reflection-tutorial.md

Nicolas Noble
- 699
- 3
- 7