Kagome
Polkadot Runtime Engine in C++17
rpc_jrpc_processor.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_API_RPC_RPCJRPCPROCESSOR
7 #define KAGOME_API_RPC_RPCJRPCPROCESSOR
8 
10 
13 
14 namespace kagome::api::rpc {
15 
17  public:
18  RpcJRpcProcessor(std::shared_ptr<JRpcServer> server,
19  std::shared_ptr<RpcApi> api);
20  ~RpcJRpcProcessor() override = default;
21 
22  void registerHandlers() override;
23 
24  private:
25  std::shared_ptr<RpcApi> api_;
26  std::shared_ptr<JRpcServer> server_;
27  };
28 
29 } // namespace kagome::api::rpc
30 #endif // KAGOME_API_RPC_RPCJRPCPROCESSOR
RpcJRpcProcessor(std::shared_ptr< JRpcServer > server, std::shared_ptr< RpcApi > api)
std::shared_ptr< JRpcServer > server_
void registerHandlers() override
registers callbacks for jrpc request
~RpcJRpcProcessor() override=default