Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
internal_jrpc_processor.cpp
Go to the documentation of this file.
1
6
#include "
api/service/internal/internal_jrpc_processor.hpp
"
7
8
#include "
api/jrpc/jrpc_method.hpp
"
9
#include "
api/service/internal/requests/set_log_level.hpp
"
10
11
namespace
kagome::api::internal
{
12
13
InternalJrpcProcessor::InternalJrpcProcessor
(
14
std::shared_ptr<JRpcServer> server, std::shared_ptr<InternalApi> api)
15
: api_{std::move(api)},
server_
{std::move(server)} {
16
BOOST_ASSERT(
api_
!=
nullptr
);
17
BOOST_ASSERT(
server_
!=
nullptr
);
18
}
19
20
template
<
typename
Request>
21
using
Handler
=
Method<Request, InternalApi>
;
22
23
void
InternalJrpcProcessor::registerHandlers
() {
24
server_
->registerHandler(
"internal_setLogLevel"
,
25
Handler<request::SetLogLevel>
(
api_
));
26
}
27
28
}
// namespace kagome::api::internal
set_log_level.hpp
kagome::api::internal::InternalJrpcProcessor::api_
std::shared_ptr< InternalApi > api_
Definition:
internal_jrpc_processor.hpp:24
kagome::api::internal::InternalJrpcProcessor::registerHandlers
void registerHandlers() override
registers callbacks for jrpc request
Definition:
internal_jrpc_processor.cpp:23
kagome::api::internal
Definition:
internal_jrpc_processor.cpp:11
internal_jrpc_processor.hpp
kagome::api::Method
Definition:
jrpc_method.hpp:20
jrpc_method.hpp
kagome::api::internal::InternalJrpcProcessor::InternalJrpcProcessor
InternalJrpcProcessor(std::shared_ptr< JRpcServer > server, std::shared_ptr< InternalApi > api)
Definition:
internal_jrpc_processor.cpp:13
kagome::api::internal::InternalJrpcProcessor::server_
std::shared_ptr< JRpcServer > server_
Definition:
internal_jrpc_processor.hpp:25
core
api
service
internal
internal_jrpc_processor.cpp
Generated by
1.8.11