Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
82f30830
Commit
82f30830
authored
8 years ago
by
Yuchen Zeng
Browse files
Options
Downloads
Patches
Plain Diff
Address review comments
parent
3bf43dd3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/server_reflection_tutorial.md
+9
-5
9 additions, 5 deletions
doc/server_reflection_tutorial.md
with
9 additions
and
5 deletions
doc/server_reflection_tutorial.md
+
9
−
5
View file @
82f30830
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment