Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhdbs/go-grpc-server-stream
Golang Grpc stream a stub data from server to the client.
https://github.com/mhdbs/go-grpc-server-stream
go-dep golang grpc protobuf shell
Last synced: about 1 month ago
JSON representation
Golang Grpc stream a stub data from server to the client.
- Host: GitHub
- URL: https://github.com/mhdbs/go-grpc-server-stream
- Owner: mhdbs
- License: apache-2.0
- Created: 2019-08-27T13:27:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-31T08:10:45.000Z (over 5 years ago)
- Last Synced: 2024-06-20T12:42:30.453Z (6 months ago)
- Topics: go-dep, golang, grpc, protobuf, shell
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Go-Grpc-Server-Stram
* The Grpc server streams the data to the client peer.## Dependencies
* Install Golang latest version
* check out to this url = https://github.com/golang/dep
* after the dependency installation do the following command
* Go to the project path then execute `dep ensure -v` command to install the dependency.## Run Server
* to the server folder run the command `go run main.go`
## Run Client
* to the client folder run the command `go run main.go`
## Output - client
{
client program
server streaming roc
Response from greet many times %v HellobilalNumber0
Response from greet many times %v HellobilalNumber1
Response from greet many times %v HellobilalNumber2
Response from greet many times %v HellobilalNumber3
Response from greet many times %v HellobilalNumber4
Response from greet many times %v HellobilalNumber5
Response from greet many times %v HellobilalNumber6
Response from greet many times %v HellobilalNumber7
Response from greet many times %v HellobilalNumber8
Response from greet many times %v HellobilalNumber9
End of the stream
}