syntax = "proto3"; import "google/protobuf/empty.proto"; 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 version = 3; HostInfo host = 4; repeated Capability capability = 5; } message HostInfo { string system = 1; string hostname = 2; string arch = 3; } message Capability { bool available = 1; string version = 2; string name = 3; string reason = 4; } message RegisterAgentResponse { int64 heartbeat_interval_second = 1; string agent_id = 2; }