diff options
author | Yuchen Zeng <zyc@google.com> | 2016-09-13 14:24:25 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-09-13 14:24:25 -0700 |
commit | 82f308303428f932d35710c8fac2c6eeb1a59143 (patch) | |
tree | 198306bb0aa42b0e60efc1ea7c9f688986c14865 /doc/server_reflection_tutorial.md | |
parent | 3bf43dd311561670414ee7e1d7167c893a384d1a (diff) |
Address review comments
Diffstat (limited to 'doc/server_reflection_tutorial.md')
-rw-r--r-- | doc/server_reflection_tutorial.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/server_reflection_tutorial.md b/doc/server_reflection_tutorial.md index 2b8f5ea8f6..ecb176723c 100644 --- a/doc/server_reflection_tutorial.md +++ b/doc/server_reflection_tutorial.md @@ -48,8 +48,12 @@ example server with Server Reflection enabled. ```sh make grpc_cli + cd bins/opt ``` + gRPC CLI binary `grpc_cli` can be found at `bins/opt/` folder. This tool is + still new and does not have a `make install` target yet. + ### List services `grpc_cli ls` command lists services and methods exposed at a given port @@ -57,7 +61,7 @@ example server with Server Reflection enabled. - List all the services exposed at a given port ```sh - $ bins/opt/grpc_cli ls localhost:50051 + $ grpc_cli ls localhost:50051 ``` output: @@ -74,7 +78,7 @@ example server with Server Reflection enabled. service. ```sh - $ bins/opt/grpc_cli ls localhost:50051 helloworld.Greeter -l + $ grpc_cli ls localhost:50051 helloworld.Greeter -l ``` output: @@ -95,7 +99,7 @@ example server with Server Reflection enabled. format of \<package\>.\<service\>.\<method\>). ```sh - $ bins/opt/grpc_cli ls localhost:50051 helloworld.Greeter.SayHello -l + $ grpc_cli ls localhost:50051 helloworld.Greeter.SayHello -l ``` output: @@ -111,7 +115,7 @@ full name of the type (in the format of \<package\>.\<type\>). - Get information about the request type ```sh - $ bins/opt/grpc_cli type localhost:50051 helloworld.HelloRequest + $ grpc_cli type localhost:50051 helloworld.HelloRequest ``` output: @@ -128,7 +132,7 @@ We can send RPCs to a server and get responses using `grpc_cli call` command. - Call a unary method ```sh - $ bins/opt/grpc_cli call localhost:50051 SayHello "name: 'gRPC CLI'" + $ grpc_cli call localhost:50051 SayHello "name: 'gRPC CLI'" ``` output: |