jgaskins / grpc

Pure-Crystal implementation of gRPC
MIT License
77 stars 12 forks source link

Add "list" command #14

Open jgaskins opened 4 months ago

jgaskins commented 4 months ago

Reported by @bendangelo here

TODO: Find and link to docs for this command — I've never heard of it before 😄

bendangelo commented 4 months ago

According to these docs. The sever should respond to "list".

https://github.com/fullstorydev/grpcurl

# Server supports reflection
grpcurl localhost:8787 list
jgaskins commented 4 months ago

That's not gRPC documentation. That's a third-party tool.

Looks like this is related to the concept of "reflection" in gRPC and, according to the gRPC docs, first-party libraries don't enable reflection automatically. I'm down with adding support, but that's an important distinction to make, especially for gRPC APIs exposed outside a VPC.