Mindera Weekly GRPC
About
- GRPC
- Protobuffers
Installation
- Install Protoc compiler
- Install Proto generator for desired language (C++, java, Kotlin, Python, Go, Ruby, Objective-C, C#, PHP)
Compiler
https://grpc.io/docs/protoc-installation/
linux:
$ apt install -y protobuf-compiler
$ protoc --version # Ensure compiler version is 3+Mac:
$ brew install protobuf
$ protoc --version # Ensure compiler version is 3+CodeGen
https://developers.google.com/protocol-buffers/docs/reference/overview
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@latestGenerate Protoc
$ protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
helloworld/helloworld.proto