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 0 : struct create_snapshot
13 : {
14 : std::string prefix;
15 : time_t release_timeout_s = 3600;
16 : typedef std::unique_ptr<create_snapshot> ptr;
17 : };
18 : }
19 :
20 : namespace response
21 : {
22 0 : struct create_snapshot
23 : {
24 : size_t snapshot = 0;
25 : size_t last_seq = 0;
26 : std::string prefix;
27 : common_status status = common_status::OK;
28 : typedef std::unique_ptr<create_snapshot> ptr;
29 : typedef std::function< void(ptr) > handler;
30 : };
31 : }
32 :
33 : }}
|