networksharding

package
v1.2.33 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

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

func NewOneListSharder

func NewOneListSharder(
	selfPeerId peer.ID,
	maxPeerCount int,
) (*oneListSharder, error)

NewOneListSharder creates a new sharder instance that is shard agnostic and uses one list

Types

type ArgListsSharder added in v1.2.0

type ArgListsSharder struct {
	PeerResolver         p2p.PeerShardResolver
	SelfPeerId           peer.ID
	P2pConfig            config.P2PConfig
	PreferredPeersHolder p2p.PreferredPeersHolderHandler
	NodeOperationMode    p2p.NodeOperation
}

ArgListsSharder represents the argument structure used in the initialization of a listsSharder implementation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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