Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
offchain_worker_factory.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORY
7
#define KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORY
8
9
#include "
offchain/offchain_worker.hpp
"
10
11
#include "
runtime/common/executor.hpp
"
12
13
namespace
kagome::offchain
{
14
15
class
OffchainWorkerFactory
{
16
public
:
17
virtual
~OffchainWorkerFactory
() =
default
;
18
19
virtual
std::shared_ptr<OffchainWorker>
make
(
20
std::shared_ptr<runtime::Executor> executor,
21
const
primitives::BlockHeader
&header) = 0;
22
};
23
24
}
// namespace kagome::offchain
25
26
#endif // KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORY
kagome::offchain
Definition:
host_api_factory_impl.hpp:20
kagome::offchain::OffchainWorkerFactory::make
virtual std::shared_ptr< OffchainWorker > make(std::shared_ptr< runtime::Executor > executor, const primitives::BlockHeader &header)=0
executor.hpp
kagome::offchain::OffchainWorkerFactory
Definition:
offchain_worker_factory.hpp:15
offchain_worker.hpp
kagome::offchain::OffchainWorkerFactory::~OffchainWorkerFactory
virtual ~OffchainWorkerFactory()=default
kagome::primitives::BlockHeader
Definition:
block_header.hpp:25
core
offchain
offchain_worker_factory.hpp
Generated by
1.8.11