Skip to content

Instantly share code, notes, and snippets.

@f3nry
Created February 1, 2019 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save f3nry/77393d6f8ad2664c3fc316b16be08d36 to your computer and use it in GitHub Desktop.
Save f3nry/77393d6f8ad2664c3fc316b16be08d36 to your computer and use it in GitHub Desktop.
Simple gRPC Protobuf
// Location: api/hello.proto
syntax = "proto3";
option go_package = "api";
service Prod {
rpc Alive(AliveRequest) returns (AliveResponse) {}
}
message AliveRequest {
string message = 1;
}
message AliveResponse {
string message = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment