TARAXA
Loading...
Searching...
No Matches
taraxa::plugin::Rpc Class Reference

#include <rpc.hpp>

Collaboration diagram for taraxa::plugin::Rpc:

Public Member Functions

 Rpc (std::shared_ptr< AppBase > app)
 
std::string name () const override
 
std::string description () const override
 
void init (const boost::program_options::variables_map &options) override
 
void addOptions (boost::program_options::options_description &command_line_options) override
 
void start () override
 
void shutdown () override
 
- Public Member Functions inherited from taraxa::Plugin
 Plugin (std::shared_ptr< AppBase > &a)
 
virtual ~Plugin ()=default
 
std::shared_ptr< AppBaseapp () const
 

Private Types

using JsonRpcServer = ModularServer< net::TaraxaFace, net::NetFace, net::EthFace, net::TestFace, net::DebugFace >
 

Private Attributes

std::shared_ptr< util::ThreadPoolrpc_thread_pool_
 
std::shared_ptr< util::ThreadPoolgraphql_thread_pool_
 
std::shared_ptr< net::HttpServerjsonrpc_http_
 
std::shared_ptr< net::HttpServergraphql_http_
 
std::shared_ptr< net::WsServerjsonrpc_ws_
 
std::shared_ptr< net::WsServergraphql_ws_
 
std::unique_ptr< JsonRpcServerjsonrpc_api_
 
uint32_t threads_ = 0
 
bool enable_test_rpc_ = false
 
bool enable_debug_ = false
 

Additional Inherited Members

- Protected Attributes inherited from taraxa::Plugin
std::weak_ptr< AppBase_app
 

Member Typedef Documentation

◆ JsonRpcServer

Constructor & Destructor Documentation

◆ Rpc()

taraxa::plugin::Rpc::Rpc ( std::shared_ptr< AppBase app)
inlineexplicit

Member Function Documentation

◆ addOptions()

void taraxa::plugin::Rpc::addOptions ( boost::program_options::options_description &  command_line_options)
overridevirtual

Implements taraxa::Plugin.

◆ description()

std::string taraxa::plugin::Rpc::description ( ) const
inlineoverridevirtual

Implements taraxa::Plugin.

◆ init()

void taraxa::plugin::Rpc::init ( const boost::program_options::variables_map &  options)
overridevirtual

Implements taraxa::Plugin.

◆ name()

std::string taraxa::plugin::Rpc::name ( ) const
inlineoverridevirtual

Implements taraxa::Plugin.

◆ shutdown()

void taraxa::plugin::Rpc::shutdown ( )
overridevirtual

Implements taraxa::Plugin.

◆ start()

void taraxa::plugin::Rpc::start ( )
overridevirtual

Implements taraxa::Plugin.

Member Data Documentation

◆ enable_debug_

bool taraxa::plugin::Rpc::enable_debug_ = false
private

◆ enable_test_rpc_

bool taraxa::plugin::Rpc::enable_test_rpc_ = false
private

◆ graphql_http_

std::shared_ptr<net::HttpServer> taraxa::plugin::Rpc::graphql_http_
private

◆ graphql_thread_pool_

std::shared_ptr<util::ThreadPool> taraxa::plugin::Rpc::graphql_thread_pool_
private

◆ graphql_ws_

std::shared_ptr<net::WsServer> taraxa::plugin::Rpc::graphql_ws_
private

◆ jsonrpc_api_

std::unique_ptr<JsonRpcServer> taraxa::plugin::Rpc::jsonrpc_api_
private

◆ jsonrpc_http_

std::shared_ptr<net::HttpServer> taraxa::plugin::Rpc::jsonrpc_http_
private

◆ jsonrpc_ws_

std::shared_ptr<net::WsServer> taraxa::plugin::Rpc::jsonrpc_ws_
private

◆ rpc_thread_pool_

std::shared_ptr<util::ThreadPool> taraxa::plugin::Rpc::rpc_thread_pool_
private

◆ threads_

uint32_t taraxa::plugin::Rpc::threads_ = 0
private

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