Skip to content

Instantly share code, notes, and snippets.

@de314
Created March 28, 2020 01:21
Show Gist options
  • Save de314/8e37975c925efe6352fa7aa0f82a958b to your computer and use it in GitHub Desktop.
Save de314/8e37975c925efe6352fa7aa0f82a958b to your computer and use it in GitHub Desktop.
Remote Proto Test
syntax = "proto3";
service NoteService {
rpc List (Empty) returns (NoteList) {}
rpc Insert (Note) returns (Note) {}
rpc Delete (NoteRequestId) returns (Note) {}
}
message Empty {}
message NoteRequestId {
string id = 1;
}
message Note {
string id = 1;
string title = 2;
string content = 3;
}
message NoteList {
repeated Note notes = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment