rippled
Loading...
Searching...
No Matches
Context.h
1#ifndef XRPL_RPC_CONTEXT_H_INCLUDED
2#define XRPL_RPC_CONTEXT_H_INCLUDED
3
4#include <xrpld/core/JobQueue.h>
5#include <xrpld/rpc/InfoSub.h>
6#include <xrpld/rpc/Role.h>
7
8#include <xrpl/beast/utility/Journal.h>
9
10namespace ripple {
11
12class Application;
13class NetworkOPs;
14class LedgerMaster;
15
16namespace RPC {
17
32
48
49template <class RequestType>
50struct GRPCContext : public Context
51{
52 RequestType params;
53};
54
55} // namespace RPC
56} // namespace ripple
57
58#endif
Represents a JSON value.
Definition json_value.h:130
A generic endpoint for log messages.
Definition Journal.h:41
Provides server functionality for clients.
Definition NetworkOPs.h:70
A consumption charge.
Definition Charge.h:11
An endpoint that consumes resources.
Definition Consumer.h:17
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Role
Indicates the level of administrative permission to grant.
Definition Role.h:25
The context of information needed to call an RPC.
Definition Context.h:20
unsigned int apiVersion
Definition Context.h:30
std::shared_ptr< JobQueue::Coro > coro
Definition Context.h:28
Resource::Charge & loadType
Definition Context.h:23
Application & app
Definition Context.h:22
InfoSub::pointer infoSub
Definition Context.h:29
beast::Journal const j
Definition Context.h:21
LedgerMaster & ledgerMaster
Definition Context.h:25
NetworkOPs & netOps
Definition Context.h:24
Resource::Consumer & consumer
Definition Context.h:26
Data passed in from HTTP headers.
Definition Context.h:39
std::string_view forwardedFor
Definition Context.h:41