add ask question service

This commit is contained in:
Asim Aslam
2021-06-30 14:58:37 +01:00
parent fe1bb0125e
commit b13647fb75
14 changed files with 474 additions and 0 deletions

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

@@ -0,0 +1,24 @@
syntax = "proto3";
package ask;
option go_package = "./proto;ask";
service Ask {
rpc Question(QuestionRequest) returns (QuestionResponse) {}
}
// Ask a question and receive an instant answer
message QuestionRequest {
// the question to ask
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;
}