Line data Source code
1 : #pragma once
2 :
3 : #include <prefixdb/api/common_status.hpp>
4 : #include <memory>
5 : #include <string>
6 : #include <functional>
7 :
8 : namespace wamba { namespace prefixdb {
9 :
10 : namespace request
11 : {
12 : // compact для конкретного префикса
13 0 : struct compact_prefix
14 : {
15 : // Пустой prefix - ошибка
16 : std::string prefix;
17 : std::string from;
18 : std::string to;
19 : typedef std::unique_ptr<compact_prefix> ptr;
20 : };
21 : }
22 :
23 : namespace response
24 : {
25 0 : struct compact_prefix
26 : {
27 : std::string prefix;
28 : common_status status = common_status::OK;
29 : typedef std::unique_ptr<compact_prefix> ptr;
30 : typedef std::function< void(ptr) > handler;
31 : };
32 : }
33 :
34 : }}
|