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