Skip to content

Instantly share code, notes, and snippets.

@viktortnk
Created July 18, 2020 11:48
Show Gist options
  • Save viktortnk/2f94fe80eb9a65b742f0a05dd2acbd37 to your computer and use it in GitHub Desktop.
Save viktortnk/2f94fe80eb9a65b742f0a05dd2acbd37 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package examples;
message Request {
string name = 1;
}
message Response {
string resp = 1;
}
message Point {
int32 x = 1;
int32 y = 2;
}
service Greeter {
rpc Greet(Request) returns (Response);
rpc Points(Request) returns (stream Point);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment