Simple implementation of gRPC in Golang.
+---------------+--------------+---------------------+----------------------+-----------------------------+
| SERVICE | RPC | REQUEST TYPE | RESPONSE TYPE | RPC TYPE |
+---------------+--------------+---------------------+----------------------+-----------------------------+
| AuthService | Login | LoginRequest | LoginResponse | Simple RPC |
| LaptopService | CreateLaptop | CreateLaptopRequest | CreateLaptopResponse | Simple RPC |
| LaptopService | SearchLaptop | SearchLaptopRequest | SearchLaptopResponse | Server-Side Streaming RPC |
| LaptopService | UploadImage | UploadImageRequest | UploadImageResponse | Client-Side Streaming RPC |
| LaptopService | RateLaptop | RateLaptopRequest | RateLaptopResponse | Bidirectional Streaming RPC |
+---------------+--------------+---------------------+----------------------+-----------------------------+
- Install Module Requirement
go mod download
- Generate gRPC Code
make gen
- Run gRPC Server
make server
-
Run grPC Client
- via Code
make client
- via CLI
Make sure you have installed evans-cli first.
make evans-cli