CatapultServer  v0.5.0.1 (Elephant)
ServerHooksUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "ServerHooks.h"
23 
24 namespace catapult { namespace extensions {
25 
27  BlockRangeConsumerFunc CreateBlockPushEntityCallback(const ServerHooks& hooks);
28 
31 }}
catapult::extensions::ServerHooks::blockRangeConsumerFactory
const auto & blockRangeConsumerFactory() const
Gets the factory for creating a BlockRangeConsumerFunc bound to an input source.
Definition: ServerHooks.h:161
ServerHooksUtils.h
catapult::extensions::ServerHooks::chainSyncedPredicate
auto chainSyncedPredicate() const
Gets the chain synced predicate.
Definition: ServerHooks.h:181
catapult::extensions::ChainSyncedPredicate
predicate<> ChainSyncedPredicate
Predicate for determining if a chain is synced.
Definition: ServerHooks.h:69
catapult::extensions::TransactionRangeConsumerFunc
handlers::TransactionRangeHandler TransactionRangeConsumerFunc
Function signature for delivering a transaction range to a consumer.
Definition: ServerHooks.h:60
catapult::extensions::CreateBlockPushEntityCallback
BlockRangeConsumerFunc CreateBlockPushEntityCallback(const ServerHooks &hooks)
Creates a block push entity callback from hooks that only pushes when synced.
Definition: ServerHooksUtils.cpp:35
catapult::extensions::CreateTransactionPushEntityCallback
TransactionRangeConsumerFunc CreateTransactionPushEntityCallback(const ServerHooks &hooks)
Creates a transaction push entity callback from hooks that only pushes when synced.
Definition: ServerHooksUtils.cpp:39
ServerHooks.h
catapult::extensions::BlockRangeConsumerFunc
handlers::BlockRangeHandler BlockRangeConsumerFunc
Function signature for delivering a block range to a consumer.
Definition: ServerHooks.h:50
catapult::extensions::ServerHooks
Hooks that can be used to configure server behavior.
Definition: ServerHooks.h:77
catapult::extensions::ServerHooks::transactionRangeConsumerFactory
const auto & transactionRangeConsumerFactory() const
Gets the factory for creating a TransactionRangeConsumerFunc bound to an input source.
Definition: ServerHooks.h:171
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35