xrpld
Loading...
Searching...
No Matches
xrpl::rpc::VersionHandler Class Reference

#include <Version.h>

Collaboration diagram for xrpl::rpc::VersionHandler:

Classes

struct  Output

Public Member Functions

 VersionHandler (JsonContext &context)
std::expected< Output, ::rpc::Status > process () const

Static Public Member Functions

static void writeResult (json::Value &obj, Output const &output)

Static Public Attributes

static constexpr std::string_view name = method::kVersion
static constexpr unsigned minApiVer = rpc::kApiMinimumSupportedVersion
static constexpr unsigned maxApiVer = rpc::kApiMaximumValidVersion
static constexpr Role role = Role::USER
static constexpr Condition condition = Condition::NoCondition

Private Attributes

std::reference_wrapper< JsonContext > context_

Detailed Description

Definition at line 21 of file Version.h.

Constructor & Destructor Documentation

◆ VersionHandler()

xrpl::rpc::VersionHandler::VersionHandler ( JsonContext & context)
explicit

Definition at line 30 of file Version.h.

Member Function Documentation

◆ process()

std::expected< Output, ::rpc::Status > xrpl::rpc::VersionHandler::process ( ) const
nodiscard

Definition at line 35 of file Version.h.

◆ writeResult()

void xrpl::rpc::VersionHandler::writeResult ( json::Value & obj,
Output const & output )
static

Definition at line 44 of file Version.h.

Member Data Documentation

◆ name

std::string_view xrpl::rpc::VersionHandler::name = method::kVersion
staticconstexpr

Definition at line 50 of file Version.h.

◆ minApiVer

unsigned xrpl::rpc::VersionHandler::minApiVer = rpc::kApiMinimumSupportedVersion
staticconstexpr

Definition at line 52 of file Version.h.

◆ maxApiVer

unsigned xrpl::rpc::VersionHandler::maxApiVer = rpc::kApiMaximumValidVersion
staticconstexpr

Definition at line 54 of file Version.h.

◆ role

Role xrpl::rpc::VersionHandler::role = Role::USER
staticconstexpr

Definition at line 56 of file Version.h.

◆ condition

Condition xrpl::rpc::VersionHandler::condition = Condition::NoCondition
staticconstexpr

Definition at line 58 of file Version.h.

◆ context_

std::reference_wrapper<JsonContext> xrpl::rpc::VersionHandler::context_
private

Definition at line 62 of file Version.h.