Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skshahriarahmedraka/my-grpc-example
https://github.com/skshahriarahmedraka/my-grpc-example
go golang grpc protobuf protocol-buffers
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skshahriarahmedraka/my-grpc-example
- Owner: skshahriarahmedraka
- Created: 2021-08-31T05:16:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T05:28:26.000Z (over 3 years ago)
- Last Synced: 2024-06-21T20:07:02.775Z (8 months ago)
- Topics: go, golang, grpc, protobuf, protocol-buffers
- Language: Go
- Homepage:
- Size: 116 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Golang grpc :
### install :
```
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go
```
### produce code from protocol buffer file :
```
protoc greet/greetpb/greet.proto --go_out=plugins=grpc:.
```## for Golang support
```
sudo apt install protobuf-compiler
```
```
sudo apt install golang-goprotobuf-dev
```
```
go get github.com/golang/protobuf
```
```
go get github.com/golang/protobuf/proto
```
```
export PATH=$PATH:$GOPATH/bin
```
example :
```
protoc --go_out=. *.proto
``````
protoc -I=src/ --go_out=src/ src/simple/simple.proto
```
grpc (golang) :
```
protoc -I=src/ --go_out=plugins=grpc:src/ src/simple/simple.proto
``````
protoc -I proto/ proto/currency.proto --go_out=plugins=grpc:proto/
```