Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetaResolversContainerFactory ¶
func NewMetaResolversContainerFactory( args FactoryArgs, ) (*metaResolversContainerFactory, error)
NewMetaResolversContainerFactory creates a new container filled with topic resolvers for metachain
func NewShardResolversContainerFactory ¶
func NewShardResolversContainerFactory( args FactoryArgs, ) (*shardResolversContainerFactory, error)
NewShardResolversContainerFactory creates a new container filled with topic resolvers for shards
Types ¶
type FactoryArgs ¶
type FactoryArgs struct { GeneralConfig config.Config ShardIDForTries uint32 ChainID string WorkingDirectory string Hasher hashing.Hasher ShardCoordinator sharding.Coordinator Messenger dataRetriever.TopicMessageHandler Store dataRetriever.StorageService Marshalizer marshal.Marshalizer Uint64ByteSliceConverter typeConverters.Uint64ByteSliceConverter DataPacker dataRetriever.DataPacker ManualEpochStartNotifier dataRetriever.ManualEpochStartNotifier ChanGracefullyClose chan endProcess.ArgEndProcess DisableOldTrieStorageEpoch uint32 EpochNotifier trie.EpochNotifier }
FactoryArgs will hold the arguments for ResolversContainerFactory for both shard and meta
Click to show internal directories.
Click to hide internal directories.