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

#include "query_processor.hpp"

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

Public Member Functions

virtual std::unique_ptr< shared_model::interface::QueryResponsequeryHandle (const shared_model::interface::Query &qry)=0
 
virtual rxcpp::observable< std::shared_ptr< shared_model::interface::BlockQueryResponse > > blocksQueryHandle (const shared_model::interface::BlocksQuery &qry)=0
 
virtual ~QueryProcessor ()
 

Detailed Description

QueryProcessor provides start point for queries in the whole system

Constructor & Destructor Documentation

virtual iroha::torii::QueryProcessor::~QueryProcessor ( )
inlinevirtual

Member Function Documentation

virtual rxcpp::observable< std::shared_ptr<shared_model::interface::BlockQueryResponse> > iroha::torii::QueryProcessor::blocksQueryHandle ( const shared_model::interface::BlocksQuery qry)
pure virtual

Register client blocks query

Parameters
query- client intent
Returns
observable with block query responses

Implemented in iroha::torii::QueryProcessorImpl.

virtual std::unique_ptr<shared_model::interface::QueryResponse> iroha::torii::QueryProcessor::queryHandle ( const shared_model::interface::Query qry)
pure virtual

Perform client query

Parameters
qry- client intent
Returns
resulted response

Implemented in iroha::torii::QueryProcessorImpl.


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