router

package
v1.0.0-genesis Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EngineType

type EngineType uint32

EngineType ...

const (
	// EngineTypeUnspecified ...
	EngineTypeUnspecified EngineType = iota
	// EngineTypeAvalanche ...
	EngineTypeAvalanche
	// EngineTypeSnowman ...
	EngineTypeSnowman
)

type Router

type Router interface {
	// RegisterRequest marks that we should expect to receive a reply to a
	// request from the given chain. The router should call the timeout handler
	// if we don't get a reply in time.
	RegisterRequest(
		nodeID ids.NodeID,
		chainID ids.ID,
		requestID uint32,
		op message.Op,
		timeoutHandler func(),
		engineType EngineType,
	)
}

Router routes messages to consensus engines

Jump to

Keyboard shortcuts

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