diff options
author | Tim Cooper <tim.cooper@layeh.com> | 2015-06-16 13:37:45 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-05-08 17:45:52 +0300 |
commit | f8677db1dcca960b611f98ab66f57ea53c96a021 (patch) | |
tree | fcadc213b87b4f21f0580b35f50f224523a7a333 /src/murmur/MurmurRPC.proto | |
parent | 3fdd05401bdf2ce9bdea2dcff60744fd89fe2d0e (diff) |
grpc: implement DatabaseService.Query
Diffstat (limited to 'src/murmur/MurmurRPC.proto')
-rw-r--r-- | src/murmur/MurmurRPC.proto | 12 |
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. |