router

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func SetRateLimiter added in v0.8.5

func SetRateLimiter(l *rate.Limiter)

Types

type Router

type Router struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Router) Sweep

func (r *Router) Sweep()

type Switch

type Switch struct {
	// contains filtered or unexported fields
}

func NewSwitch

func NewSwitch(f func(uint32, []byte)) Switch

func (*Switch) Received

func (s *Switch) Received(id uint32, message []byte, h func([]byte))

Jump to

Keyboard shortcuts

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