rust-nex/rnex-server-api-grpc/meta.proto

48 lines
No EOL
895 B
Protocol Buffer

syntax = "proto3";
package meta;
import "google/protobuf/empty.proto";
message BuildInfo {
string version = 1;
string edition = 2;
string feature_set = 3;
string build_hash = 4;
}
message ApiFeature {
string name = 1;
int32 version = 2;
bool needs_admin = 3;
}
message ApiFeatures {
repeated ApiFeature api_features = 1;
}
message Empty {}
service ServerMetaService {
rpc GetBuildInfo(google.protobuf.Empty) returns (BuildInfo);
rpc GetApiFeatures(google.protobuf.Empty) returns (ApiFeatures);
}
message KickPidsRequest {
repeated uint64 pids = 1;
string reason = 2;
}
message KickPidsResponse {
repeated uint64 kicked = 1;
repeated uint64 missing = 2;
}
message OnlinePidsResponse {
repeated uint64 pids = 1;
}
service AdminService {
rpc KickPids(KickPidsRequest) returns (KickPidsResponse);
rpc ListOnlinePids(Empty) returns (OnlinePidsResponse);
}