Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageRouter ¶ added in v0.2.0
type MessageRouter interface {
// Route routes the given message, this function MUST NOT block
Route(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() error
// Start starts the network
Start() error
// UpdateSubnets will update the registered subnets according to active validators
UpdateSubnets()
}
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.