package
0.12.18
Repository: https://github.com/astrix-network/astrixd.git
Documentation: pkg.go.dev

# Functions

NewRoute create a new Route.
NewRouter creates a new empty router.

# Constants

DefaultMaxMessages is the default capacity for a route with a capacity defined.

# Variables

ErrRouteCapacityReached indicates that route's capacity has been reached.
ErrRouteClosed indicates that a route was closed while reading/writing.
ErrTimeout signifies that one of the router functions had a timeout.

# Structs

Route represents an incoming or outgoing Router route.
Router routes messages by type to their respective input channels.

# Type aliases

OnRouteCapacityReachedHandler is a function that is to be called when one of the routes reaches capacity.