hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
storage_init.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_STORAGE_INIT_HPP
7 #define IROHA_STORAGE_INIT_HPP
8 
9 #include <functional>
10 #include <memory>
11 #include <optional>
12 #include <string>
13 
14 #include <boost/optional/optional_fwd.hpp>
15 #include "common/result_fwd.hpp"
16 #include "logger/logger_fwd.hpp"
18 
19 namespace shared_model::interface {
20  class QueryResponseFactory;
21 }
22 
23 namespace iroha {
24  class PendingTransactionStorage;
25 
26  namespace ametsuchi {
27  struct PoolWrapper;
28  class PostgresOptions;
29  class Storage;
30  class VmCaller;
31  } // namespace ametsuchi
32 
33  expected::Result<std::shared_ptr<iroha::ametsuchi::Storage>, std::string>
36  std::shared_ptr<iroha::ametsuchi::PoolWrapper> pool_wrapper,
37  std::shared_ptr<iroha::PendingTransactionStorage> pending_txs_storage,
38  std::shared_ptr<shared_model::interface::QueryResponseFactory>
39  query_response_factory,
40  boost::optional<std::string> block_storage_dir,
41  std::optional<std::reference_wrapper<const iroha::ametsuchi::VmCaller>>
42  vm_caller_ref,
43  logger::LoggerManagerTreePtr log_manager);
44 } // namespace iroha
45 
46 #endif
Definition: postgres_options.hpp:19
expected::Result< std::shared_ptr< iroha::ametsuchi::Storage >, std::string > initStorage(iroha::ametsuchi::PostgresOptions const &pg_opt, std::shared_ptr< iroha::ametsuchi::PoolWrapper > pool_wrapper, std::shared_ptr< iroha::PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::QueryResponseFactory > query_response_factory, boost::optional< std::string > block_storage_dir, std::optional< std::reference_wrapper< const iroha::ametsuchi::VmCaller >> vm_caller_ref, logger::LoggerManagerTreePtr log_manager)
Definition: block_query.hpp:15
Definition: command_executor.hpp:13
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition: logger_manager_fwd.hpp:14