Skip to content

Instantly share code, notes, and snippets.

@tomatophobia
Created September 24, 2023 12:04
Show Gist options
  • Save tomatophobia/9f349ad4f273047869abddb8e3c5e3c9 to your computer and use it in GitHub Desktop.
Save tomatophobia/9f349ad4f273047869abddb8e3c5e3c9 to your computer and use it in GitHub Desktop.
service Echo {
rpc OneToOne(Message) returns (Message) {}
rpc OneToMany(Message) returns (stream Message) {}
rpc ManyToOne(stream Message) returns (Message) {}
rpc ManyToMany(stream Message) returns (stream Message) {}
}
message Message {
int32 seq = 1;
string title = 2;
string content = 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment