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:43:19 +0300
committerMikkel Krautz <mikkel@krautz.dk>2016-05-08 17:45:52 +0300
commite9ec7d7db9f5788c7b26cc9213f9c74c1ff78a40 (patch)
tree41f1c65f53a156749d454602c9fd4d2c7442800e /src/murmur/MurmurRPC.proto
parent12e70ed262c21a0f3f01562a4f89ae10d63a5112 (diff)
grpc: implement LogService.Query
Diffstat (limited to 'src/murmur/MurmurRPC.proto')
-rw-r--r--src/murmur/MurmurRPC.proto26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/murmur/MurmurRPC.proto b/src/murmur/MurmurRPC.proto
index dc7d1af69..502df831f 100644
--- a/src/murmur/MurmurRPC.proto
+++ b/src/murmur/MurmurRPC.proto
@@ -142,22 +142,32 @@ service TextMessageService {
}
message Log {
- message Entry {
+ optional Server server = 1;
+
+ optional int64 timestamp = 2;
+ optional string text = 3;
+
+ message Query {
optional Server server = 1;
- optional int64 timestamp = 2;
- optional string text = 3;
+ optional uint32 min = 2;
+ optional uint32 max = 3;
}
- message Query {
+ message List {
optional Server server = 1;
- optional int64 start_timestamp = 2;
- optional int64 end_timestamp = 3;
- optional uint32 limit = 4;
+ optional uint32 total = 2;
+ optional uint32 min = 3;
+ optional uint32 max = 4;
+ repeated Log entries = 5;
}
}
service LogService {
- //TODO(grpc): rpc Query(Log.Query) returns(stream Log.Entry);
+ // Query returns a list of log entries from the given server.
+ //
+ // To get the total number of log entries, omit min and/or max from the
+ // query.
+ rpc Query(Log.Query) returns(Log.List);
}
// Having "Config" seems preferable to having a map (map<string, string>),