Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetValidatorStats ¶ added in v0.3.2
GetValidatorStats returns stats of validators, including the following:
- the amount of validators in the network
- the amount of active validators in the network (i.e. not slashed or existed)
- the amount of validators assigned to this operator
type MessageRouter ¶ added in v0.2.0
type MessageRouter interface { // Route routes the given message, this function MUST NOT block Route(logger *zap.Logger, message spectypes.SSVMessage) }
MessageRouter is accepting network messages and route them to the corresponding (internal) components
type MessageRouting ¶ added in v0.2.0
type MessageRouting interface { // UseMessageRouter registers a message router to handle incoming messages UseMessageRouter(router MessageRouter) }
MessageRouting allows to register a MessageRouter
type P2PNetwork ¶ added in v0.2.0
type P2PNetwork interface { io.Closer protocolp2p.Network MessageRouting // Setup initialize the network layer and starts the libp2p host Setup(logger *zap.Logger) error // Start starts the network Start(logger *zap.Logger) error // UpdateSubnets will update the registered subnets according to active validators UpdateSubnets(logger *zap.Logger) // SubscribeAll subscribes to all subnets SubscribeAll(logger *zap.Logger) error }
P2PNetwork is a facade interface that provides the entire functionality of the different network interfaces
Click to show internal directories.
Click to hide internal directories.