Clio develop
The XRP Ledger API server.
|
Contains common functionality for handling the server_info
command.
More...
#include <ServerInfo.hpp>
Classes | |
struct | AdminSection |
A struct to hold the admin section of the output. More... | |
struct | CacheSection |
A struct to hold the cache section of the output. More... | |
struct | InfoSection |
A struct to hold the info section of the output. More... | |
struct | Input |
A struct to hold the input data for the command. More... | |
struct | Output |
A struct to hold the output data of the command. More... | |
struct | ValidatedLedgerSection |
A struct to hold the validated ledger section of the output. More... | |
Public Types | |
using | Result = HandlerReturnType<Output> |
Public Member Functions | |
BaseServerInfoHandler (std::shared_ptr< BackendInterface > const &backend, std::shared_ptr< feed::SubscriptionManagerInterface > const &subscriptions, std::shared_ptr< LoadBalancerType > const &balancer, std::shared_ptr< ETLServiceType const > const &etl, CountersType const &counters) | |
Construct a new BaseServerInfoHandler object. | |
Result | process (Input input, Context const &ctx) const |
Process the ServerInfo command. | |
Static Public Member Functions | |
static RpcSpecConstRef | spec (uint32_t apiVersion) |
Returns the API specification for the command. | |
Friends | |
void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, Output const &output) |
void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, InfoSection const &info) |
void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, ValidatedLedgerSection const &validated) |
void | tag_invoke (boost::json::value_from_tag, boost::json::value &jv, CacheSection const &cache) |
Input | tag_invoke (boost::json::value_to_tag< Input >, boost::json::value const &jv) |
Contains common functionality for handling the server_info
command.
LoadBalancerType | The type of the load balancer |
ETLServiceType | The type of the ETL service |
CountersType | The type of the counters |
|
inline |
Construct a new BaseServerInfoHandler object.
backend | The backend to use |
subscriptions | The subscription manager to use |
balancer | The load balancer to use |
etl | The ETL service to use |
counters | The counters to use |
|
inline |
Process the ServerInfo command.
input | The input data for the command |
ctx | The context of the request |
|
inlinestatic |
Returns the API specification for the command.
apiVersion | The api version to return the spec for |