22#include "data/BackendInterface.hpp"
23#include "data/Types.hpp"
24#include "rpc/common/Types.hpp"
26#include <boost/json.hpp>
27#include <boost/json/conversion.hpp>
28#include <boost/json/value.hpp>
40 std::shared_ptr<BackendInterface> sharedPtrBackend_;
57 LedgerRangeHandler(std::shared_ptr<BackendInterface>
const& sharedPtrBackend) : sharedPtrBackend_(sharedPtrBackend)
78 tag_invoke(boost::json::value_from_tag, boost::json::value& jv, Output
const& output);
The ledger_range command returns the index number of the earliest and latest ledgers that the server ...
Definition LedgerRange.hpp:39
LedgerRangeHandler(std::shared_ptr< BackendInterface > const &sharedPtrBackend)
Construct a new LedgerRangeHandler object.
Definition LedgerRange.hpp:57
friend void tag_invoke(boost::json::value_from_tag, boost::json::value &jv, Output const &output)
Convert the Output to a JSON object.
Definition LedgerRange.cpp:42
Result process(Context const &ctx) const
Process the LedgerRange command.
Definition LedgerRange.cpp:35
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:36
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:81
Stores a range of sequences as a min and max pair.
Definition Types.hpp:247
Context of an RPC call.
Definition Types.hpp:118
A struct to hold the output data of the command.
Definition LedgerRange.hpp:46
Result type used to return responses or error statuses to the Webserver subsystem.
Definition Types.hpp:129