xrpld
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/json/json_value.h>
8#include <xrpl/resource/Charge.h>
9#include <xrpl/resource/Consumer.h>
10#include <xrpl/server/InfoSub.h>
11
12#include <memory>
13#include <string_view>
14
15namespace xrpl {
16
17class Application;
18class NetworkOPs;
19class LedgerMaster;
20
21namespace rpc {
22
39
55
56template <class RequestType>
57struct GRPCContext : public Context
58{
59 RequestType params;
60};
61
62} // namespace rpc
63} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:44
Represents a JSON value.
Definition json_value.h:117
std::shared_ptr< InfoSub > pointer
Definition InfoSub.h:91
Provides server functionality for clients.
Definition NetworkOPs.h:82
A consumption charge.
Definition Charge.h:13
An endpoint that consumes resources.
Definition Consumer.h:20
API version numbers used in later API versions.
Definition ApiVersion.h:36
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:27
The context of information needed to call an RPC.
Definition Context.h:27
std::shared_ptr< JobQueue::Coro > coro
Definition Context.h:35
resource::Charge & loadType
Definition Context.h:30
InfoSub::pointer infoSub
Definition Context.h:36
beast::Journal const j
Definition Context.h:28
NetworkOPs & netOps
Definition Context.h:31
unsigned int apiVersion
Definition Context.h:37
Application & app
Definition Context.h:29
resource::Consumer & consumer
Definition Context.h:33
LedgerMaster & ledgerMaster
Definition Context.h:32
RequestType params
Definition Context.h:59
Data passed in from HTTP headers.
Definition Context.h:46
std::string_view forwardedFor
Definition Context.h:48
json::Value params
Definition Context.h:51