router

package
v0.0.0-...-be62643 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKey = errors.New("key error.")
View Source
var ErrYaml = errors.New("read router.yaml error.")

Functions

This section is empty.

Types

type RouterManager

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

func GetRouterManager

func GetRouterManager() *RouterManager

func NewRouterManager

func NewRouterManager() *RouterManager

func (*RouterManager) GetRouterList

func (r *RouterManager) GetRouterList(key string) ([]string, error)

func (*RouterManager) LoadRouter

func (r *RouterManager) LoadRouter(confPath string) error

func (*RouterManager) ParseYaml

func (r *RouterManager) ParseYaml() (map[string][]string, error)

func (*RouterManager) Reload

func (r *RouterManager) Reload() error

func (*RouterManager) SetSendFunc

func (r *RouterManager) SetSendFunc(fn func(uint64, string))

func (*RouterManager) Subscribe

func (r *RouterManager) Subscribe(key string, connId uint64)

Jump to

Keyboard shortcuts

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