Line data Source code
1 : #pragma once
2 :
3 : #include <prefixdb/api/common_status.hpp>
4 : #include <prefixdb/api/fields.hpp>
5 : #include <memory>
6 : #include <string>
7 :
8 : namespace wamba { namespace prefixdb {
9 :
10 : namespace request
11 : {
12 0 : struct has
13 : {
14 : bool noval = true; // не сериализуеться
15 : std::string prefix;
16 : key_list_t fields;
17 : size_t snapshot = 0;
18 : typedef std::unique_ptr<has> ptr;
19 : };
20 : }
21 :
22 : namespace response
23 : {
24 0 : struct has
25 : {
26 :
27 : common_status status = common_status::OK;
28 : std::string prefix;
29 : field_list_t fields;
30 :
31 : typedef std::unique_ptr<has> ptr;
32 : typedef std::function< void(ptr) > handler;
33 : };
34 :
35 : }
36 :
37 : }}
|