factory

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSharder

func NewSharder(arg ArgsSharderFactory) (p2p.Sharder, error)

NewSharder creates new Sharder instances

Types

type ArgsSharderFactory

type ArgsSharderFactory struct {
	PeerShardResolver       p2p.PeerShardResolver
	Pid                     peer.ID
	MaxConnectionCount      uint32
	MaxIntraShardValidators uint32
	MaxCrossShardValidators uint32
	MaxIntraShardObservers  uint32
	MaxCrossShardObservers  uint32
	MaxSeeders              uint32
	MaxFullHistoryObservers uint32
	Type                    string
}

ArgsSharderFactory represents the argument for the sharder factory

Jump to

Keyboard shortcuts

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