hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
grpc_response_handler.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CLI_GRPC_RESPONSE_HANDLER_HPP
7 #define IROHA_CLI_GRPC_RESPONSE_HANDLER_HPP
8 
9 #include "logger/logger_fwd.hpp"
13 
14 namespace spdlog {
15  class logger;
16 }
17 
18 namespace iroha_cli {
20  public:
26  void handle(CliClient::Response<CliClient::TxStatus> response);
32 
33  private:
34  TransactionResponseHandler tx_handler_;
35  QueryResponseHandler query_handler_;
36  void handleGrpcErrors(grpc::StatusCode code);
37  logger::LoggerPtr log_;
38  std::unordered_map<int, std::string> handler_map_;
39  };
40 } // namespace iroha_cli
41 
42 #endif // IROHA_GRPC_RESPONSE_HANDLER_HPP
Definition: client.hpp:27
Definition: client.cpp:16
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: grpc_response_handler.hpp:14
Definition: dummy_logger.hpp:11
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition: logger_manager_fwd.hpp:14
Definition: grpc_response_handler.hpp:19
Definition: query_response_handler.hpp:31
Definition: transaction_response_handler.hpp:19