Implemented working runner api (fixes #1)

This commit is contained in:
2023-01-09 00:43:34 -07:00
parent 433b827cdd
commit e20285fe6c
2 changed files with 249 additions and 23 deletions
+14
View File
@@ -10,6 +10,7 @@ message Register {
message RunCommand {
string command = 1;
repeated string args = 2;
}
message RunCommandPartialResponse {
@@ -21,3 +22,16 @@ message RunCommandFinalResponse {
int64 return_code = 1;
RunCommandPartialResponse partial_response = 2;
}
message ServerToRunnerMsg {
oneof msg {
RunCommand RunCommandMsg = 1;
}
}
message RunnerToServerMsg {
oneof msg {
RunCommandPartialResponse RunCommandPartialResponseMsg = 1;
RunCommandFinalResponse RunCommandFinalResponseMsg = 2;
}
}