feat(proto): init

This commit is contained in:
2026-04-03 23:31:12 +03:00
parent b69f2e4c9a
commit a44630cfea
6 changed files with 616 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
syntax = "proto3";
package chat;
option go_package="gitea.d3m0k1d.ru/d3m0k1d/HellreigN/proto";
service Collector {
rpc Stream(stream CollectorRequest) returns (CollectorResponse);
}
message CollectorRequest {
string message = 1;
}
message CollectorResponse {
}
service Commander {
rpc Stream(stream Command) returns (stream FinishedCommand);
}
message Command {
int64 id = 1;
repeated string command = 2;
optional string stdin = 3;
}
message FinishedCommand {
int64 id = 1;
int32 status = 2;
string stdout = 3;
string stderr = 4;
}