router

package
v0.22.13 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorDuplicateRouterType = errors.New("duplicate")
)

Functions

func Register

func Register(tp RouterType, handler ServerHandler) error

Types

type RouterType

type RouterType int
const (
	GRPC RouterType = iota
	Http
	Dubbo2
	TlsTCP
	AnyTCP
)

type ServerHandler added in v0.22.10

type ServerHandler func(port int, listener net.Listener)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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