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