rippled
Loading...
Searching...
No Matches
GRPCHandlers.h
1#ifndef XRPL_RPC_GRPCHANDLER_H_INCLUDED
2#define XRPL_RPC_GRPCHANDLER_H_INCLUDED
3
4#include <xrpld/rpc/Context.h>
5
6#include <xrpl/proto/org/xrpl/rpc/v1/xrp_ledger.pb.h>
7
8#include <grpcpp/grpcpp.h>
9
10namespace ripple {
11
12/*
13 * These handlers are for gRPC. They each take in a protobuf message that is
14 * nested inside RPC::GRPCContext<T>, where T is the request type
15 * The return value is the response type, as well as a status
16 * If the status is not Status::OK (meaning an error occurred), then only
17 * the status will be sent to the client, and the response will be ommitted
18 */
19
21doLedgerGrpc(RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerRequest>& context);
22
25 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerEntryRequest>& context);
26
29 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerDataRequest>& context);
30
33 RPC::GRPCContext<org::xrpl::rpc::v1::GetLedgerDiffRequest>& context);
34
35} // namespace ripple
36
37#endif
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
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)
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)