mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-24 08:25:31 +00:00
emoji
This commit is contained in:
41
emoji/proto/emoji.proto
Normal file
41
emoji/proto/emoji.proto
Normal file
@@ -0,0 +1,41 @@
|
||||
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 alias and return the emoji
|
||||
message FindRequest {
|
||||
string alias = 1;
|
||||
}
|
||||
|
||||
message FindResponse {
|
||||
string emoji = 2;
|
||||
}
|
||||
|
||||
// Get the flag for a country. Requires country code e.g GB for great britain
|
||||
message FlagRequest {
|
||||
string code = 1;
|
||||
}
|
||||
|
||||
message FlagResponse {
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user