mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
25 lines
437 B
Protocol Buffer
25 lines
437 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package answer;
|
|
|
|
option go_package = "./proto;answer";
|
|
|
|
service Answer {
|
|
rpc Question(QuestionRequest) returns (QuestionResponse) {}
|
|
}
|
|
|
|
// Ask a question and receive an instant answer
|
|
message QuestionRequest {
|
|
// the question to answer
|
|
string query = 1;
|
|
}
|
|
|
|
message QuestionResponse {
|
|
// the answer to your question
|
|
string answer = 1;
|
|
// a related url
|
|
string url = 2;
|
|
// any related image
|
|
string image = 3;
|
|
}
|