24 lines
379 B
Protocol Buffer
24 lines
379 B
Protocol Buffer
syntax = "proto3";
|
|
package sq.v1;
|
|
|
|
service StatusService {
|
|
rpc Status(GetStatusRequest) returns (GetStatusResponse) {}
|
|
}
|
|
|
|
message GetStatusRequest {}
|
|
|
|
message GetStatusResponse {
|
|
string node_id = 1;
|
|
ClusterStatus cluster = 2;
|
|
}
|
|
|
|
message ClusterStatus {
|
|
repeated NodeInfo nodes = 1;
|
|
}
|
|
|
|
message NodeInfo {
|
|
string node_id = 1;
|
|
string address = 2;
|
|
string status = 3;
|
|
}
|