Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Cooper <tim.cooper@layeh.com>2015-06-19 15:05:59 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-05-08 17:45:52 +0300
commit62a627ea40b71bc435759fe29d40b6443af97529 (patch)
treeca0c963fbd24720037c11c3ec2d5fa924da0f97b /src/murmur/MurmurRPC.proto
parentb5afebee04aaccdaf95f8b871bf00a4ca8ad076c (diff)
grpc: implement BanService.Get
Diffstat (limited to 'src/murmur/MurmurRPC.proto')
-rw-r--r--src/murmur/MurmurRPC.proto14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/murmur/MurmurRPC.proto b/src/murmur/MurmurRPC.proto
index cc56c8179..71508543f 100644
--- a/src/murmur/MurmurRPC.proto
+++ b/src/murmur/MurmurRPC.proto
@@ -337,11 +337,21 @@ message Ban {
optional string reason = 6;
optional int64 start = 7;
optional int64 duration = 8;
+
+ message Query {
+ optional Server server = 1;
+ }
+
+ message List {
+ optional Server server = 1;
+ repeated Ban bans = 2;
+ }
}
service BanService {
- //TODO(grpc): rpc Get(Ban) returns(stream Ban);
- //TODO(grpc): rpc Set(stream Ban) returns(Void);
+ // Get returns a list of bans for the given server.
+ rpc Get(Ban.Query) returns(Ban.List);
+ rpc Set(Ban.List) returns(Void);
}
message ACL {