Files
services/emoji/proto/emoji.proto
Asim Aslam 775d34ff88 remove send
2022-02-19 17:56:32 +00:00

47 lines
914 B
Protocol Buffer

syntax = "proto3";
package emoji;
option go_package = "./proto;emoji";
service Emoji {
rpc Find(FindRequest) returns (FindResponse) {}
rpc Flag(FlagRequest) returns (FlagResponse) {}
rpc Print(PrintRequest) returns (PrintResponse) {}
}
// Find an emoji by its alias e.g :beer:
message FindRequest {
// the alias code e.g :beer:
string alias = 1;
}
message FindResponse {
// the unicode emoji 🍺
string emoji = 2;
}
// Get the flag for a country. Requires country code e.g GB for great britain
message FlagRequest {
// country code e.g GB
string code = 1;
}
message FlagResponse {
// the emoji flag
string flag = 2;
}
// Print text and renders the emojis with aliases e.g
// let's grab a :beer: becomes let's grab a 🍺
message PrintRequest {
// text including any alias e.g let's grab a :beer:
string text = 1;
}
message PrintResponse {
// text with rendered emojis
string text = 1;
}