Line data Source code
1 : #pragma once
2 :
3 : #include <prefixdb/api/common_status.hpp>
4 : #include <memory>
5 : #include <string>
6 : #include <vector>
7 :
8 : namespace wamba { namespace prefixdb {
9 :
10 : namespace request
11 : {
12 0 : struct get_updates_since
13 : {
14 : std::string prefix;
15 : size_t seq = 0;
16 : size_t limit = 10;
17 : typedef std::unique_ptr<get_updates_since> ptr;
18 : };
19 : }
20 :
21 : namespace response
22 : {
23 0 : struct get_updates_since
24 : {
25 : std::string prefix;
26 : size_t seq_first = 0;
27 : size_t seq_last = 0;
28 : size_t seq_final = 0;
29 : typedef std::string data_type;
30 : typedef std::vector<data_type> logs_type;
31 : logs_type logs;
32 : common_status status = common_status::OK;
33 :
34 : typedef std::unique_ptr<get_updates_since> ptr;
35 : typedef std::function< void(ptr) > handler;
36 : };
37 :
38 : }
39 :
40 : }}
|