hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::torii::QueryService Class Reference

#include "query_service.hpp"

Inheritance diagram for iroha::torii::QueryService:
Inheritance graph
Collaboration diagram for iroha::torii::QueryService:
Collaboration graph

Public Types

using QueryFactoryType = shared_model::interface::AbstractTransportFactory< shared_model::interface::Query, iroha::protocol::Query >
 

Public Member Functions

 QueryService (std::shared_ptr< iroha::torii::QueryProcessor > query_processor, std::shared_ptr< QueryFactoryType > query_factory, logger::Logger log=logger::log("Query Service"))
 
 QueryService (const QueryService &)=delete
 
QueryServiceoperator= (const QueryService &)=delete
 
void Find (iroha::protocol::Query const &request, iroha::protocol::QueryResponse &response)
 
grpc::Status Find (grpc::ServerContext *context, const iroha::protocol::Query *request, iroha::protocol::QueryResponse *response) override
 
grpc::Status FetchCommits (grpc::ServerContext *context, const iroha::protocol::BlocksQuery *request, grpc::ServerWriter<::iroha::protocol::BlockQueryResponse > *writer) override
 

Detailed Description

Actual implementation of async QueryService. ToriiServiceHandler::(SomeMethod)Handler calls a corresponding method in this class.

Member Typedef Documentation

Constructor & Destructor Documentation

iroha::torii::QueryService::QueryService ( std::shared_ptr< iroha::torii::QueryProcessor query_processor,
std::shared_ptr< QueryFactoryType query_factory,
logger::Logger  log = logger::log("Query Service") 
)

Here is the call graph for this function:

iroha::torii::QueryService::QueryService ( const QueryService )
delete

Member Function Documentation

grpc::Status iroha::torii::QueryService::FetchCommits ( grpc::ServerContext *  context,
const iroha::protocol::BlocksQuery *  request,
grpc::ServerWriter<::iroha::protocol::BlockQueryResponse > *  writer 
)
override
void iroha::torii::QueryService::Find ( iroha::protocol::Query const &  request,
iroha::protocol::QueryResponse &  response 
)

actual implementation of async Find in QueryService

Parameters
request- Query
response- QueryResponse

Here is the call graph for this function:

Here is the caller graph for this function:

grpc::Status iroha::torii::QueryService::Find ( grpc::ServerContext *  context,
const iroha::protocol::Query *  request,
iroha::protocol::QueryResponse *  response 
)
override

Here is the call graph for this function:

QueryService& iroha::torii::QueryService::operator= ( const QueryService )
delete

The documentation for this class was generated from the following files: