Skip to content

Commit

Permalink
Add grpc example;
Browse files Browse the repository at this point in the history
  • Loading branch information
cnutshell committed Oct 18, 2018
1 parent 7631895 commit 207c4f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/golang/grpc-example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Server

1. get a *listener*
2. get a rpc server
3. register server description and service implement for rpc server
4. rpc *server* serve at the *listener*

# Client

1. establish a *connection* to server
2. call Invoke on this *connection*

![](./grpc-example.png)
Binary file added docs/golang/grpc-example.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ nav:
- rust: rust/about.md
- golang:
- gRPC: golang/gRPC.md
- Example: golang/grpc-example.md
- python:
- module: python/module.md
- shell:
Expand Down

0 comments on commit 207c4f8

Please sign in to comment.