1
0
Fork 0
This repository has been archived on 2024-01-05. You can view files and clone it, but cannot push or open issues or pull requests.
command_gateway/proto/interpreter.proto

30 lines
618 B
Protocol Buffer
Raw Normal View History

2023-01-30 21:28:03 +01:00
syntax = "proto3";
2023-01-31 19:38:48 +01:00
package interpreter;
2023-01-30 21:28:03 +01:00
service Unix {
// Message send by the command gateway to the daemon
rpc authorize(AuthorizeRequest) returns (AuthorizeResponse);
// Message send when user quit shell
rpc terminate(TerminateRequest) returns (TerminateResponse);
}
message AuthorizeRequest {
// json like argument
string command_arg = 1;
2023-01-31 20:59:14 +01:00
// pid
uint32 pid = 2;
2023-01-30 21:28:03 +01:00
}
message AuthorizeResponse {
string session_id = 1;
// json like arguments changed by daemon
string command_arg = 2;
2023-01-30 21:28:03 +01:00
}
message TerminateRequest {
2023-01-31 20:59:14 +01:00
string session_id = 1;
string log_file = 2;
2023-01-30 21:28:03 +01:00
}
2023-01-31 22:02:05 +01:00
message TerminateResponse {}