GitHunt
VA

vasconcelosvcd/grpc-server

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@latest

Generate Protoc

$ protoc --go_out=. --go_opt=paths=source_relative \
    --go-grpc_out=. \
    --go-grpc_opt=paths=source_relative \
    helloworld/helloworld.proto

Languages

Go90.3%Makefile9.7%

Contributors

Created April 13, 2022
Updated April 20, 2022
vasconcelosvcd/grpc-server | GitHunt