networksharding

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 13 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

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

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