vasconcelosvcd / grpc-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Usefull Links

About


Languages

Language:Go 90.3%Language:Makefile 9.7%