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