OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
status_server.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef OPENCBDC_TX_SRC_LOCKING_SHARD_STATUS_SERVER_H_
7#define OPENCBDC_TX_SRC_LOCKING_SHARD_STATUS_SERVER_H_
8
10#include "status_messages.hpp"
12
13#include <memory>
14
18 public:
24 std::shared_ptr<status_interface> impl,
26 status_response>> srv);
27
28 private:
29 std::shared_ptr<status_interface> m_impl;
30 std::unique_ptr<
32 m_srv;
33
34 auto request_handler(status_request req)
35 -> std::optional<status_response>;
36 };
37}
38
39#endif
Server for handling TX and UHS ID status requests.
status_server(std::shared_ptr< status_interface > impl, std::unique_ptr< cbdc::rpc::blocking_server< status_request, status_response > > srv)
Constructor.
Generic synchronous RPC server.
bool status_response
Status response RPC messages indicating whether the shard contains given UHS or TX ID.
std::variant< uhs_status_request, tx_status_request > status_request
Status request RPC message wrapper, holding either a UHS ID or TX ID query request.