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" 22 template <
typename Interface,
typename Transport>
23 class AbstractTransportFactory;
32 class QueryService :
public iroha::protocol::QueryService_v1::Service {
40 iroha::protocol::BlocksQuery>;
42 QueryService(std::shared_ptr<iroha::torii::QueryProcessor> query_processor,
44 std::shared_ptr<BlocksQueryFactoryType> blocks_query_factory,
63 grpc::ServerContext *context,
64 const iroha::protocol::BlocksQuery *request,
65 grpc::ServerWriter<::iroha::protocol::BlockQueryResponse> *writer)
69 std::shared_ptr<iroha::torii::QueryProcessor> query_processor_;
70 std::shared_ptr<QueryFactoryType> query_factory_;
71 std::shared_ptr<BlocksQueryFactoryType> blocks_query_factory_;
83 #endif // TORII_QUERY_SERVICE_HPP
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: command_executor.hpp:14
Definition: query_service.hpp:32
Definition: application.hpp:79
Status
Definition: status.hpp:12
Definition: application.hpp:100