Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tgrziminiar/go-grpc-handler
Example of how to use go grpc Sreaming and Unary
https://github.com/tgrziminiar/go-grpc-handler
go golang grpc grpc-go grpc-streaming protobuf streaming unary-rpc
Last synced: 22 days ago
JSON representation
Example of how to use go grpc Sreaming and Unary
- Host: GitHub
- URL: https://github.com/tgrziminiar/go-grpc-handler
- Owner: TGRZiminiar
- Created: 2024-01-15T08:57:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T16:10:30.000Z (about 1 year ago)
- Last Synced: 2024-11-07T19:53:16.411Z (2 months ago)
- Topics: go, golang, grpc, grpc-go, grpc-streaming, protobuf, streaming, unary-rpc
- Language: Go
- Homepage:
- Size: 33.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## 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
```make s-proto
make ss
make sc
```## Bidirectional streaming RPC
```make b-proto
make bs
make bc
```## Client streaming RPC
```make c-proto
make cs
make cc
```## Server streaming RPC
```make ss-proto
make sss
make ssc
```