resolverscontainer

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2023 License: GPL-3.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const EmptyExcludePeersOnTopic = ""

EmptyExcludePeersOnTopic is an empty topic

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 {
	ResolverConfig              config.ResolverConfig
	NumConcurrentResolvingJobs  int32
	ShardCoordinator            sharding.Coordinator
	Messenger                   dataRetriever.TopicMessageHandler
	Store                       dataRetriever.StorageService
	Marshalizer                 marshal.Marshalizer
	DataPools                   dataRetriever.PoolsHolder
	Uint64ByteSliceConverter    typeConverters.Uint64ByteSliceConverter
	DataPacker                  dataRetriever.DataPacker
	TriesContainer              common.TriesHolder
	InputAntifloodHandler       dataRetriever.P2PAntifloodHandler
	OutputAntifloodHandler      dataRetriever.P2PAntifloodHandler
	CurrentNetworkEpochProvider dataRetriever.CurrentNetworkEpochProviderHandler
	PreferredPeersHolder        p2p.PreferredPeersHolderHandler
	PeersRatingHandler          dataRetriever.PeersRatingHandler
	SizeCheckDelta              uint32
	IsFullHistoryNode           bool
	PayloadValidator            dataRetriever.PeerAuthenticationPayloadValidator
}

FactoryArgs will hold the arguments for ResolversContainerFactory for both shard and meta

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL