Documentation ¶
Index ¶
- func CreateNodesCoordinator(nodeShufflerOut factory.ShuffleOutCloser, ...) (nodesCoordinator.NodesCoordinator, error)
- func CreateNodesShuffleOut(nodesConfig sharding.GenesisNodesSetupHandler, ...) (factory.ShuffleOutCloser, error)
- func CreateShardCoordinator(nodesConfig sharding.GenesisNodesSetupHandler, pubKey crypto.PublicKey, ...) (sharding.Coordinator, core.NodeType, error)
- func NewBootstrapComponentsFactory(args BootstrapComponentsFactoryArgs) (*bootstrapComponentsFactory, error)
- func NewManagedBootstrapComponents(bootstrapComponentsFactory *bootstrapComponentsFactory) (*managedBootstrapComponents, error)
- func NewTestManagedBootstrapComponents(bootstrapComponentsFactory *bootstrapComponentsFactory) (*testManagedBootstrapComponents, error)
- type BootstrapComponentsFactoryArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNodesCoordinator ¶
func CreateNodesCoordinator( nodeShufflerOut factory.ShuffleOutCloser, nodesConfig sharding.GenesisNodesSetupHandler, prefsConfig config.PreferencesConfig, epochStartNotifier epochStart.RegistrationHandler, pubKey crypto.PublicKey, marshalizer marshal.Marshalizer, hasher hashing.Hasher, ratingAndListIndexHandler nodesCoordinator.ChanceComputer, bootStorer storage.Storer, nodeShuffler nodesCoordinator.NodesShuffler, currentShardID uint32, bootstrapParameters factory.BootstrapParamsHolder, startEpoch uint32, chanNodeStop chan endProcess.ArgEndProcess, nodeTypeProvider core.NodeTypeProviderHandler, enableEpochsHandler common.EnableEpochsHandler, validatorInfoCacher epochStart.ValidatorInfoCacher, ) (nodesCoordinator.NodesCoordinator, error)
CreateNodesCoordinator is the nodes coordinator factory
func CreateNodesShuffleOut ¶
func CreateNodesShuffleOut( nodesConfig sharding.GenesisNodesSetupHandler, epochConfig config.EpochStartConfig, chanStopNodeProcess chan endProcess.ArgEndProcess, ) (factory.ShuffleOutCloser, error)
CreateNodesShuffleOut is the nodes shuffler closer factory
func CreateShardCoordinator ¶
func CreateShardCoordinator( nodesConfig sharding.GenesisNodesSetupHandler, pubKey crypto.PublicKey, prefsConfig config.PreferencesConfig, log logger.Logger, ) (sharding.Coordinator, core.NodeType, error)
CreateShardCoordinator is the shard coordinator factory
func NewBootstrapComponentsFactory ¶
func NewBootstrapComponentsFactory(args BootstrapComponentsFactoryArgs) (*bootstrapComponentsFactory, error)
NewBootstrapComponentsFactory creates an instance of bootstrapComponentsFactory
func NewManagedBootstrapComponents ¶
func NewManagedBootstrapComponents(bootstrapComponentsFactory *bootstrapComponentsFactory) (*managedBootstrapComponents, error)
NewManagedBootstrapComponents creates a managed bootstrap components handler
func NewTestManagedBootstrapComponents ¶
func NewTestManagedBootstrapComponents(bootstrapComponentsFactory *bootstrapComponentsFactory) (*testManagedBootstrapComponents, error)
NewTestManagedBootstrapComponents creates an instance of a test managed bootstrap components
Types ¶
type BootstrapComponentsFactoryArgs ¶
type BootstrapComponentsFactoryArgs struct { Config config.Config RoundConfig config.RoundConfig PrefConfig config.Preferences ImportDbConfig config.ImportDbConfig FlagsConfig config.ContextFlagsConfig WorkingDir string CoreComponents factory.CoreComponentsHolder CryptoComponents factory.CryptoComponentsHolder NetworkComponents factory.NetworkComponentsHolder StatusCoreComponents factory.StatusCoreComponentsHolder }
BootstrapComponentsFactoryArgs holds the arguments needed to create a botstrap components factory
Click to show internal directories.
Click to hide internal directories.