https://github.com/wangy8961/grpc-go-tutorial
详解 gRPC 框架的 4 种 API: Unary RPC、Server-side Streaming RPC、Client-side Streaming RPC、Bi-directional Streaming RPC,并演示了 gRPC 的高级特性,比如 Error Handling、Deadlines & Timeouts、Cancelling RPCs、Authentication(SSL/TLS)、Interceptor、Language Interoperability、Reflection & Evans CLI 等。最后,用一个实例 ToDo list 将我们所学的 gRPC 全部知识融会贯通
https://github.com/wangy8961/grpc-go-tutorial
Last synced: 22 days ago
JSON representation
详解 gRPC 框架的 4 种 API: Unary RPC、Server-side Streaming RPC、Client-side Streaming RPC、Bi-directional Streaming RPC,并演示了 gRPC 的高级特性,比如 Error Handling、Deadlines & Timeouts、Cancelling RPCs、Authentication(SSL/TLS)、Interceptor、Language Interoperability、Reflection & Evans CLI 等。最后,用一个实例 ToDo list 将我们所学的 gRPC 全部知识融会贯通
- Host: GitHub
- URL: https://github.com/wangy8961/grpc-go-tutorial
- Owner: wangy8961
- Created: 2019-05-05T02:30:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T04:41:37.000Z (almost 6 years ago)
- Last Synced: 2025-04-04T20:36:14.301Z (about 1 month ago)
- Language: Go
- Homepage: http://www.madmalls.com/blog/category/go-microservices/
- Size: 5.4 MB
- Stars: 29
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Go 微服务实战系列](https://madmalls.com/blog/category/go-microservices/)
# 1. 教程
- [Go微服务实战|第0章:环境配置](https://madmalls.com/blog/post/grpc-setup-go-dependencies/)
- [Go微服务实战|第1章:gRPC 简介](https://madmalls.com/blog/post/what-is-grpc/)
- [Go微服务实战|第2章:gRPC Unary RPC](https://madmalls.com/blog/post/grpc-unary-rpc/)
- [Go微服务实战|第3章:gRPC Server-side Streaming RPC](https://madmalls.com/blog/post/grpc-server-streaming-rpc/)
- [Go微服务实战|第4章:gRPC Client-side Streaming RPC](https://madmalls.com/blog/post/grpc-client-streaming-rpc/)
- [Go微服务实战|第5章:gRPC Bidirectional Streaming RPC](https://madmalls.com/blog/post/grpc-bidirectional-streaming-rpc/)
- [Go微服务实战|第6章:gRPC Error Handling](https://madmalls.com/blog/post/grpc-error-handling/)
- [Go微服务实战|第7章:gRPC Deadlines & Timeouts](https://madmalls.com/blog/post/grpc-deadline/)
- [Go微服务实战|第8章:gRPC Cancelling RPCs](https://madmalls.com/blog/post/grpc-cancel/)
- [Go微服务实战|第9章:gRPC TLS Secure](https://madmalls.com/blog/post/grpc-enable-tls/)
- [Go微服务实战|第10章:gRPC Authentication](https://madmalls.com/blog/post/grpc-authentication/)
- [Go微服务实战|第11章:gRPC Interceptors](https://madmalls.com/blog/post/grpc-interceptors/)
- [Go微服务实战|第12章:gRPC-gateway generate RESTful API](https://madmalls.com/blog/post/grpc-gateway-generate-restfull-api/)# 2. 使用
Clone the code:
```bash
[root@CentOS ~]# git clone https://github.com/wangy8961/grpc-go-tutorial.git
```Open a new terminal:
```bash
[root@CentOS ~]# cd grpc-go-tutorial
[root@CentOS grpc-go-tutorial]# go run greet/greet_server/main.go
```Open a new terminal:
```bash
[root@CentOS ~]# cd grpc-go-tutorial
[root@CentOS grpc-go-tutorial]# go run greet/greet_client/main.go
```