add option to support text format (#54)

* augments grpcurl package API in order to handle multiple formats
* deprecates old signature for InvokeRpc
* add command-line flag to use protobuf text format instead of JSON
* use AnyResolver when marshaling to/from JSON
This commit is contained in:
Joshua Humphries
2018-10-16 21:26:16 -04:00
committed by GitHub
parent 397a8c18ca
commit e00ef3eb7c
9 changed files with 752 additions and 104 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ cd "$(dirname $0)"
# Run this script to generate files used by tests.
echo "Creating protosets..."
protoc ../../../google.golang.org/grpc/interop/grpc_testing/test.proto \
-I../../../ --include_imports \
protoc testing/test.proto \
--include_imports \
--descriptor_set_out=testing/test.protoset
protoc testing/example.proto \