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