factory

package
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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.CommonSharder, error)

NewSharder creates new Sharder instances

Types

type ArgsSharderFactory

type ArgsSharderFactory struct {
	PeerShardResolver       p2p.PeerShardResolver
	Pid                     peer.ID
	MaxConnectionCount      int
	MaxIntraShardValidators int
	MaxCrossShardValidators int
	MaxIntraShardObservers  int
	MaxCrossShardObservers  int
	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