6 #ifndef TORII_QUERY_SERVICE_HPP 7 #define TORII_QUERY_SERVICE_HPP 9 #include <unordered_map> 10 #include "endpoint.grpc.pb.h" 11 #include "endpoint.pb.h" 12 #include "qry_responses.pb.h" 23 template <
typename Interface,
typename Transport>
35 class QueryService :
public iroha::protocol::QueryService_v1::Service {
44 iroha::protocol::BlocksQuery>;
47 std::shared_ptr<iroha::torii::QueryProcessor> query_processor,
49 std::shared_ptr<BlocksQueryFactoryType> blocks_query_factory,
68 grpc::ServerContext *context,
69 const iroha::protocol::BlocksQuery *request,
70 grpc::ServerWriter<::iroha::protocol::BlockQueryResponse> *writer)
74 std::shared_ptr<iroha::torii::QueryProcessor> query_processor_;
75 std::shared_ptr<QueryFactoryType> query_factory_;
76 std::shared_ptr<BlocksQueryFactoryType> blocks_query_factory_;
89 #endif // TORII_QUERY_SERVICE_HPP
Definition: command_client.hpp:16
Definition: blocks_query.hpp:20
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
static const model::converters::PbQueryFactory query_factory(std::make_shared< logger::LoggerSpdlog >("QueryFactory", std::make_shared< logger::LoggerConfig >(logger::LoggerConfig{ logger::kDefaultLogLevel, logger::getDefaultLogPatterns()})))
Definition: block_query.hpp:15
Definition: query_service.hpp:35
Definition: command_executor.hpp:12
Status
Definition: status.hpp:12
Definition: query_service.hpp:24