Kagome
Polkadot Runtime Engine in C++17
rpc_api_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_API_RPCAPIIMPL
7 #define KAGOME_API_RPCAPIIMPL
8 
11 
12 namespace kagome::api {
13 
14  class RpcApiImpl final : public RpcApi {
15  public:
16  RpcApiImpl(std::shared_ptr<JRpcServer> server);
17 
18  outcome::result<std::vector<std::string>> methods() const override;
19 
20  private:
21  std::shared_ptr<JRpcServer> server_;
22  };
23 
24 } // namespace kagome::api
25 
26 #endif // KAGOME_API_RPCAPIIMPL
outcome::result< std::vector< std::string > > methods() const override
std::shared_ptr< JRpcServer > server_
RpcApiImpl(std::shared_ptr< JRpcServer > server)