8000 GitHub - Wr4thon/protobuf_grpc_talk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Wr4thon/protobuf_grpc_talk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Protobuff GRPC - talk

Installation

docker run --rm -it golang
apt update; apt install vim unzip -y
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.0/protoc-3.17.0-linux-x86_64.zip
unzip protoc-3.17.0-linux-x86_64.zip
mv ./bin/protoc /usr/bin
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
mkdir ~/demo ; cd ~/demo

demo proto

vim ./demo.proto
syntax = "proto3";

package demo;
option go_package="github.com/wr4thon/demo";

message Target {
	string Name = 1;
}

message Void {}

service Greeter {
	rpc Greet(Target) returns (Void);
}

generation

protoc --go_out=. --go-grpc_out=. ./demo.proto

References

Resources I used:

Links I found helpful during the preparation:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0