rename ask to answer

This commit is contained in:
Asim Aslam
2021-06-30 15:35:06 +01:00
parent 9600a24a71
commit 6d401db8b1
15 changed files with 100 additions and 99 deletions

24
answer/proto/answer.proto Normal file
View File

@@ -0,0 +1,24 @@
syntax = "proto3";
package answer;
option go_package = "./proto;answer";
service Answer {
rpc Question(QuestionRequest) returns (QuestionResponse) {}
}
// Answer 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;
}