hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
failover_callback_holder.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_FAILOVER_CALLBACK_HOLDER_HPP
7 #define IROHA_FAILOVER_CALLBACK_HOLDER_HPP
8 
10 
11 namespace iroha {
12  namespace ametsuchi {
14  public:
16  soci::session &connection,
18  std::string connection_options,
19  std::unique_ptr<ReconnectionStrategy> reconnection_strategy,
20  logger::LoggerPtr log);
21 
22  private:
23  std::vector<std::unique_ptr<FailoverCallback>> callbacks_;
24  };
25  } // namespace ametsuchi
26 } // namespace iroha
27 
28 #endif // IROHA_FAILOVER_CALLBACK_HOLDER_HPP
Definition: failover_callback_holder.hpp:13
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: block_query.hpp:14
Definition: failover_callback.hpp:25
FailoverCallback & makeFailoverCallback(soci::session &connection, FailoverCallback::InitFunctionType init, std::string connection_options, std::unique_ptr< ReconnectionStrategy > reconnection_strategy, logger::LoggerPtr log)
Definition: failover_callback_holder.cpp:10
std::function< void(soci::session &)> InitFunctionType
Definition: failover_callback.hpp:27