Skip to content
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

Add reflection support #68

Merged
merged 11 commits into from
Feb 5, 2019
Merged

Add reflection support #68

merged 11 commits into from
Feb 5, 2019

Conversation

bojand
Copy link
Owner

@bojand bojand commented Feb 3, 2019

Addresses #35.

Now if -proto or -protoset are not specified, we default to server reflection and try to get the method details from server using a reflection request. Optionally -rmd can be used to specify metadata as stringified JSON used only for reflection request.

Example:

ghz -insecure \
    -rmd '{"token": "foobar"}' \
    -call "helloworld.Greeter.SayHello" \
    -d '{"name": "Bob Smith"}' \
    0.0.0.0:50051

@bojand bojand merged commit 063c563 into master Feb 5, 2019
@bojand bojand deleted the reflection branch October 23, 2019 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant