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-16 13:37:45 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-05-08 17:45:52 +0300
commitf8677db1dcca960b611f98ab66f57ea53c96a021 (patch)
treefcadc213b87b4f21f0580b35f50f224523a7a333 /src/murmur/MurmurRPC.proto
parent3fdd05401bdf2ce9bdea2dcff60744fd89fe2d0e (diff)
grpc: implement DatabaseService.Query
Diffstat (limited to 'src/murmur/MurmurRPC.proto')
-rw-r--r--src/murmur/MurmurRPC.proto12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/murmur/MurmurRPC.proto b/src/murmur/MurmurRPC.proto
index 6070d76c9..5192bef43 100644
--- a/src/murmur/MurmurRPC.proto
+++ b/src/murmur/MurmurRPC.proto
@@ -461,17 +461,27 @@ message DatabaseUser {
message Query {
optional Server server = 1;
+
+ optional string filter = 2;
+ }
+
+ message List {
+ optional Server server = 1;
+
+ repeated DatabaseUser users = 2;
}
message Verify {
optional Server server = 1;
+
optional string name = 2;
optional string password = 3;
}
}
service DatabaseService {
- //TODO(grpc): rpc Query(Database.Query) returns(stream DatabaseUser);
+ // Query returns a list of registered users who match given query.
+ rpc Query(DatabaseUser.Query) returns(DatabaseUser.List);
// Get returns the database user with the given id.
rpc Get(DatabaseUser) returns(DatabaseUser);
// Update updates the given database user.