grpc-go-tutorial
grpc-go-tutorial copied to clipboard
详解 gRPC 框架的 4 种 API: Unary RPC、Server-side Streaming RPC、Client-side Streaming RPC、Bi-directional Streaming RPC,并演示了 gRPC 的高级特性,比如 Error Handling、Deadlines & Timeouts、Cancelli...
Go 微服务实战系列
1. 教程
- Go微服务实战|第0章:环境配置
- Go微服务实战|第1章:gRPC 简介
- Go微服务实战|第2章:gRPC Unary RPC
- Go微服务实战|第3章:gRPC Server-side Streaming RPC
- Go微服务实战|第4章:gRPC Client-side Streaming RPC
- Go微服务实战|第5章:gRPC Bidirectional Streaming RPC
- Go微服务实战|第6章:gRPC Error Handling
- Go微服务实战|第7章:gRPC Deadlines & Timeouts
- Go微服务实战|第8章:gRPC Cancelling RPCs
- Go微服务实战|第9章:gRPC TLS Secure
- Go微服务实战|第10章:gRPC Authentication
- Go微服务实战|第11章:gRPC Interceptors
- Go微服务实战|第12章:gRPC-gateway generate RESTful API
2. 使用
Clone the code:
[root@CentOS ~]# git clone https://github.com/wangy8961/grpc-go-tutorial.git
Open a new terminal:
[root@CentOS ~]# cd grpc-go-tutorial
[root@CentOS grpc-go-tutorial]# go run greet/greet_server/main.go
Open a new terminal:
[root@CentOS ~]# cd grpc-go-tutorial
[root@CentOS grpc-go-tutorial]# go run greet/greet_client/main.go