Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
impl
offchain_local_storage.hpp
offchain_persistent_storage.hpp
offchain_storage.hpp
offchain_worker.hpp
offchain_worker_factory.hpp
offchain_worker_pool.hpp
types.hpp
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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