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