TARAXA
taraxa::net::GraphQlHttpProcessor Class Referencefinal

#include <http_processor.hpp>

Collaboration diagram for taraxa::net::GraphQlHttpProcessor:

Public Member Functions

 GraphQlHttpProcessor (std::shared_ptr<::taraxa::final_chain::FinalChain > final_chain, std::shared_ptr<::taraxa::DagManager > dag_manager, std::shared_ptr<::taraxa::PbftManager > pbft_manager, std::shared_ptr<::taraxa::TransactionManager > transaction_manager, std::shared_ptr<::taraxa::DbStorage > db, std::shared_ptr<::taraxa::GasPricer > gas_pricer, std::weak_ptr<::taraxa::Network > network, uint64_t chain_id)
 
Response process (const Request &request) override
 

Private Member Functions

Response createErrResponse (std::string &&="")
 
Response createErrResponse (graphql::response::Value &&error_value)
 
Response createOkResponse (std::string &&response_body)
 

Private Attributes

std::shared_ptr< graphql::taraxa::Queryquery_
 
std::shared_ptr< graphql::taraxa::Mutationmutation_
 
std::shared_ptr< graphql::taraxa::Subscriptionsubscription_
 
graphql::taraxa::Operations operations_
 

Additional Inherited Members

- Public Types inherited from taraxa::net::HttpProcessor
using Request = boost::beast::http::request< boost::beast::http::string_body >
 
using Response = boost::beast::http::response< boost::beast::http::string_body >
 

Constructor & Destructor Documentation

◆ GraphQlHttpProcessor()

taraxa::net::GraphQlHttpProcessor::GraphQlHttpProcessor ( std::shared_ptr<::taraxa::final_chain::FinalChain final_chain,
std::shared_ptr<::taraxa::DagManager dag_manager,
std::shared_ptr<::taraxa::PbftManager pbft_manager,
std::shared_ptr<::taraxa::TransactionManager transaction_manager,
std::shared_ptr<::taraxa::DbStorage db,
std::shared_ptr<::taraxa::GasPricer gas_pricer,
std::weak_ptr<::taraxa::Network network,
uint64_t  chain_id 
)

Member Function Documentation

◆ createErrResponse() [1/2]

Response taraxa::net::GraphQlHttpProcessor::createErrResponse ( graphql::response::Value &&  error_value)
private

◆ createErrResponse() [2/2]

HttpProcessor::Response taraxa::net::GraphQlHttpProcessor::createErrResponse ( std::string &&  response_body = "")
private

◆ createOkResponse()

HttpProcessor::Response taraxa::net::GraphQlHttpProcessor::createOkResponse ( std::string &&  response_body)
private

◆ process()

HttpProcessor::Response taraxa::net::GraphQlHttpProcessor::process ( const Request request)
overridevirtual

Member Data Documentation

◆ mutation_

std::shared_ptr<graphql::taraxa::Mutation> taraxa::net::GraphQlHttpProcessor::mutation_
private

◆ operations_

graphql::taraxa::Operations taraxa::net::GraphQlHttpProcessor::operations_
private

◆ query_

std::shared_ptr<graphql::taraxa::Query> taraxa::net::GraphQlHttpProcessor::query_
private

◆ subscription_

std::shared_ptr<graphql::taraxa::Subscription> taraxa::net::GraphQlHttpProcessor::subscription_
private

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