Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1009 Bytes

readme.md

File metadata and controls

70 lines (53 loc) · 1009 Bytes

Example Of Grpc Streaming In This Repo

  • Unary RPC (normal request response)
  • Bidirectional streaming RPC
  • Client streaming RPC
  • Server streaming RPC

Install Grpc

go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]

Export Path Grpc

export PATH="$PATH:$(go env GOPATH)/bin"




Run this following command to make the code run

Unary RPC

<!-- to generate proto file -->
make s-proto

<!-- start server -->
make ss

<!-- start client -->
make sc

Bidirectional streaming RPC

<!-- to generate proto file -->
make b-proto

<!-- start server -->
make bs

<!-- start client -->
make bc

Client streaming RPC

<!-- to generate proto file -->
make c-proto

<!-- start server -->
make cs

<!-- start client -->
make cc

Server streaming RPC

<!-- to generate proto file -->
make ss-proto

<!-- start server -->
make sss

<!-- start client -->
make ssc