Last active
January 16, 2017 13:09
-
-
Save dictav/cc281b6e6263489afcf619d8c5cc2191 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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