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 NewNodeRedundancy ¶
func NewNodeRedundancy(arg ArgNodeRedundancy) (*nodeRedundancy, error)
NewNodeRedundancy creates a node redundancy object which implements NodeRedundancyHandler interface
Types ¶
type ArgNodeRedundancy ¶ added in v1.1.32
type ArgNodeRedundancy struct { RedundancyLevel int64 Messenger P2PMessenger ObserverPrivateKey crypto.PrivateKey }
ArgNodeRedundancy represents the DTO structure used by the nodeRedundancy's constructor
type P2PMessenger ¶
P2PMessenger defines a subset of the p2p.Messenger interface
Click to show internal directories.
Click to hide internal directories.