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 support for binary data #33

Merged
merged 5 commits into from
Oct 18, 2018
Merged

Add support for binary data #33

merged 5 commits into from
Oct 18, 2018

Conversation

bojand
Copy link
Owner

@bojand bojand commented Oct 18, 2018

Add support for binary data input. Addresses #22.
Added two new options:

-b  The call data comes as serialized binary message read from stdin.
-B  Path for the call data as serialized binary message.

Example usage:

ghz -proto ./greeter.proto -call helloworld.Greeter.SayHello -B ./hello_request_data.bin 0.0.0.0:50051

Or using binary from stdin:

ghz -proto ./greeter.proto -call helloworld.Greeter.SayHello -b 0.0.0.0:50051 < ./hello_request_data.bin

@bojand bojand merged commit f979538 into master Oct 18, 2018
@bojand bojand deleted the bindata branch February 5, 2019 02:17
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