Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.41 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.41 KB

Simple-Go-GRPC

Simple implementation of gRPC in Golang.

Service and RPC List

+---------------+--------------+---------------------+----------------------+-----------------------------+
|    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 |
+---------------+--------------+---------------------+----------------------+-----------------------------+

Quickstart

  1. Install Module Requirement
go mod download
  1. Generate gRPC Code
make gen
  1. Run gRPC Server
make server
  1. Run grPC Client

    • via Code
    make client
    • via CLI
      Make sure you have installed evans-cli first.
    make evans-cli