router

package
v0.12.12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 14 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 RouterServerHandler) error

Types

type RouterServerHandler

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

type RouterType

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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