feat: GRPC method register agent

This commit is contained in:
2026-04-05 10:17:43 +03:00
parent 602175481f
commit ff01d2bedb
3 changed files with 196 additions and 11 deletions
+13
View File
@@ -6,8 +6,21 @@ option go_package = "github.com/lorsanstand/HomeOps-Hub/api/gen/homeops;homeops"
service Hub {
rpc Ping (google.protobuf.Empty) returns (PongResponse) {}
rpc RegisterAgent (RegisterAgentRequest) returns (RegisterAgentResponse) {}
}
message PongResponse {
string pong = 1;
}
message RegisterAgentRequest {
string agent_id = 1;
string agent_name = 2;
string hostname = 3;
string version = 4;
string arch = 5;
}
message RegisterAgentResponse {
int64 heartbeat_interval_second = 1;
}