-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reflection: "show message" gives 0 lines #88
Comments
actual call works, though (which is COOL!): default.GoHeroe@localhost:6666> call List
? Filter All
{
"superPow": [
{
"name": "Flash power",
"cat": "SciencePowers"
},
{
"name": "Superman power",
"cat": "CosmicBasedPowers"
},
{
"name": "Spiderman power",
"cat": "SupernaturalPowers"
}
]
} |
Yet to know how invoke this from command line one does not know which json to send. This works: rualpe-ws:grpc-master paf$ echo '{"category": "SupernaturalPowers"}' | evans --host localhost --port 6666 -r --service GoHeroe --call List --cli
{
"superPow": [
{
"name": "Spiderman power",
"cat": "SupernaturalPowers"
}
]
}
rualpe-ws:grpc-master paf$ But to known this "category" I had to dive into .proto file. |
If this helps, using .proto file it works:
Noticed different package name... Noticed that even this way one does not know possible enum values (this is not vital, I'm not planning to use ENUMs much). |
(enums can be played with in REPL mode, all possible values are auto-suggested) |
Thank you for pointed out an issue! |
bliss! thanks, Ktr ;)
|
connecting with reflection:
I expected to see possible messages:
proto here:
https://github.com/chemidy/goheroe-code-examples/blob/master/gRPC-Service-Discovery-With-Server-Reflection-in-go/proto/goheroe.proto
The text was updated successfully, but these errors were encountered: