redundancy

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: GPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilMessenger = errors.New("nil messenger")

ErrNilMessenger signals that a nil messenger has been provided

View Source
var ErrNilObserverPrivateKey = errors.New("nil observer private key")

ErrNilObserverPrivateKey signals that a nil observer private key has been provided

Functions

func NewBootstrapNodeRedundancy

func NewBootstrapNodeRedundancy(nodePrivateKey crypto.PrivateKey) (*bootstrapNodeRedundancy, error)

NewBootstrapNodeRedundancy returns a new instance of bootstrapNodeRedundancy It should be used for bootstrap only!

func NewNodeRedundancy

func NewNodeRedundancy(arg ArgNodeRedundancy) (*nodeRedundancy, error)

NewNodeRedundancy creates a node redundancy object which implements NodeRedundancyHandler interface

Types

type ArgNodeRedundancy

type ArgNodeRedundancy struct {
	RedundancyLevel    int64
	Messenger          P2PMessenger
	ObserverPrivateKey crypto.PrivateKey
}

ArgNodeRedundancy represents the DTO structure used by the nodeRedundancy's constructor

type P2PMessenger

type P2PMessenger interface {
	ID() core.PeerID
	IsInterfaceNil() bool
}

P2PMessenger defines a subset of the p2p.Messenger interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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