Skip to content

Instantly share code, notes, and snippets.

@dictav
Last active January 16, 2017 13:09
Show Gist options
  • Save dictav/cc281b6e6263489afcf619d8c5cc2191 to your computer and use it in GitHub Desktop.
Save dictav/cc281b6e6263489afcf619d8c5cc2191 to your computer and use it in GitHub Desktop.
namespace grpcexample;
rpc_service GRPCExample {
GetPerson(Request): Person;
ListPeople(Request): Person (streaming: "server");
ArrayPeople(Request): Result;
}
enum PhoneType: byte {
MOBILE,
HOME,
WORK
}
table PhoneNumber {
number: string;
ptype: PhoneType;
}
table Person {
name: string;
id: int;
email: string;
phone: [PhoneNumber];
}
table Request {
}
table Result {
items: [Person];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment