Documentation ¶
Index ¶
- Variables
- type RouterManager
- func (r *RouterManager) GetRouterList(key string) ([]string, error)
- func (r *RouterManager) LoadRouter(confPath string) error
- func (r *RouterManager) ParseYaml() (map[string][]string, error)
- func (r *RouterManager) Reload() error
- func (r *RouterManager) SetSendFunc(fn func(uint64, string))
- func (r *RouterManager) Subscribe(key string, connId uint64)
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) 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)
Click to show internal directories.
Click to hide internal directories.