Documentation
¶
Overview ¶
Package router is DEPRECATED. This package should be in the node repository as it's part of the P2P layer, not consensus.
Migration:
OLD: import "github.com/luxfi/consensus/networking/router" NEW: import "github.com/luxfi/node/network/router"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeprecated = errors.New("router package should be in github.com/luxfi/node/network/router")
Functions ¶
This section is empty.
Types ¶
type InboundHandler ¶
type InboundHandler interface {
HandleInbound(ctx context.Context, msg message.InboundMessage)
}
InboundHandler handles inbound messages
type InboundHandlerFunc ¶
type InboundHandlerFunc func(ctx context.Context, msg message.InboundMessage)
InboundHandlerFunc is a function that implements InboundHandler
func (InboundHandlerFunc) HandleInbound ¶
func (f InboundHandlerFunc) HandleInbound(ctx context.Context, msg message.InboundMessage)
HandleInbound implements InboundHandler
type Router
deprecated
type Router interface {
Deprecated()
}
Deprecated: Implement in node repository
Directories
¶
| Path | Synopsis |
|---|---|
|
Package routermock provides mock implementations for message routing
|
Package routermock provides mock implementations for message routing |
Click to show internal directories.
Click to hide internal directories.