rust-nex/rnex-server-api-grpc/meta.proto
redbinder0526 c5790cbed2
All checks were successful
Build and Test / fast-racing-neo (push) Successful in 7m55s
Build and Test / wii-u-chat (push) Successful in 7m58s
Build and Test / terraria (push) Successful in 8m0s
Build and Test / wii-sports-club (push) Successful in 8m0s
Build and Test / minecraft-wiiu (push) Successful in 8m10s
Build and Test / splatoon-testfire (push) Successful in 8m10s
Build and Test / splatoon (push) Successful in 8m10s
Build and Test / sonic-transformed (push) Successful in 8m10s
Build and Test / super-mario-maker (push) Successful in 8m11s
Build and Test / friends (push) Successful in 8m11s
Build and Test / puyopuyo (push) Successful in 8m22s
Build and Test / mario-tennis (push) Successful in 8m21s
feat(grpc): add support for kicking players and showing current online players
2026-08-09 20:28:49 +02:00

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);
}