router

package
v1.22.21 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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