xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
rpc
GRPCHandlers.h
1
#pragma once
2
3
#include <xrpld/rpc/Context.h>
4
5
#include <grpcpp/support/status.h>
6
#include <org/xrpl/rpc/v1/get_ledger.pb.h>
7
#include <org/xrpl/rpc/v1/get_ledger_data.pb.h>
8
#include <org/xrpl/rpc/v1/get_ledger_diff.pb.h>
9
#include <org/xrpl/rpc/v1/get_ledger_entry.pb.h>
10
11
#include <
utility
>
12
13
namespace
xrpl
{
14
15
/*
16
* These handlers are for gRPC. They each take in a protobuf message that is
17
* nested inside rpc::GRPCContext<T>, where T is the request type
18
* The return value is the response type, as well as a status
19
* If the status is not Status::OK (meaning an error occurred), then only
20
* the status will be sent to the client, and the response will be omitted
21
*/
22
23
std::pair<org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status>
24
doLedgerGrpc
(
rpc::GRPCContext<org::xrpl::rpc::v1::GetLedgerRequest>
& context);
25
26
std::pair<org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status>
27
doLedgerEntryGrpc
(
rpc::GRPCContext<org::xrpl::rpc::v1::GetLedgerEntryRequest>
& context);
28
29
std::pair<org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status>
30
doLedgerDataGrpc
(
rpc::GRPCContext<org::xrpl::rpc::v1::GetLedgerDataRequest>
& context);
31
32
std::pair<org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status>
33
doLedgerDiffGrpc
(
rpc::GRPCContext<org::xrpl::rpc::v1::GetLedgerDiffRequest>
& context);
34
35
}
// namespace xrpl
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::doLedgerDataGrpc
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > doLedgerDataGrpc(rpc::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context)
Definition
LedgerData.cpp:134
xrpl::doLedgerDiffGrpc
std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > doLedgerDiffGrpc(rpc::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context)
Definition
LedgerDiff.cpp:18
xrpl::doLedgerEntryGrpc
std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > doLedgerEntryGrpc(rpc::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context)
Definition
LedgerEntry.cpp:1104
xrpl::doLedgerGrpc
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > doLedgerGrpc(rpc::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context)
Definition
xrpld/rpc/handlers/ledger/Ledger.cpp:126
xrpl::rpc::GRPCContext
Definition
Context.h:58
utility
Generated by
1.17.0