Files
HellreigN/proto/hellreign.proto
T
shinyzero0 1d75935a08
ci-agent / build (push) Failing after 2m30s
feat(proto): add service monitor
2026-04-04 19:56:08 +03:00

45 lines
794 B
Protocol Buffer

syntax = "proto3";
package chat;
option go_package="gitea.d3m0k1d.ru/d3m0k1d/HellreigN/proto/proto";
service Collector {
rpc Stream(stream CollectorRequest) returns (CollectorResponse);
rpc ServicesStream(stream ServicesUpdate) returns (ServicesUpdateResp);
}
message ServicesUpdateResp {
}
message ServicesUpdate {
message ServiceUpdate {
string name = 1;
string status = 2;
}
repeated ServiceUpdate services = 1;
}
message CollectorRequest {
string message = 1;
}
message CollectorResponse {
}
service Commander {
rpc Stream(stream FinishedCommand) returns (stream Command);
}
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;
}