Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListsSharder ¶
func NewListsSharder(arg ArgListsSharder) (*listsSharder, error)
NewListsSharder creates a new kad list based kad sharder instance
func NewNilListSharder ¶
func NewNilListSharder() *nilListSharder
NewNilListSharder returns a disabled sharder implementation
Types ¶
type ArgListsSharder ¶ added in v1.2.0
type ArgListsSharder struct { PeerResolver p2p.PeerShardResolver SelfPeerId peer.ID MaxPeerCount uint32 MaxIntraShardValidators uint32 MaxCrossShardValidators uint32 MaxIntraShardObservers uint32 MaxCrossShardObservers uint32 MaxFullHistoryObservers uint32 MaxSeeders uint32 }
ArgListsSharder represents the argument structure used in the initialization of a listsSharder implementation
Click to show internal directories.
Click to hide internal directories.