Documentation ¶
Index ¶
- Constants
- type Group
- func (g *Group) AddHandle(subName string, handler middleware.Handler)
- func (g *Group) AddHandled(subName string, handler middleware.Handler)
- func (g *Group) AddHandling(subName string, handler middleware.Handler)
- func (g *Group) GetChild(name string) *Group
- func (g *Group) GetReallyPath() string
- func (g *Group) HasChildren() bool
- func (g *Group) HasService() bool
- func (g *Group) IsValid() error
- type Unit
Constants ¶
View Source
const ( Handling = "Handling" Handler = "Handle" Handled = "Handled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Path string //原始注册服务路径 Handling middleware.Handler Handled middleware.Handler Children map[string]*Group Services map[string]*Unit // contains filtered or unexported fields }
func ReflectHandle ¶
反射获取对象的Handle 方法
func (*Group) AddHandled ¶
func (g *Group) AddHandled(subName string, handler middleware.Handler)
func (*Group) AddHandling ¶
func (g *Group) AddHandling(subName string, handler middleware.Handler)
func (*Group) GetReallyPath ¶
func (*Group) HasChildren ¶
func (*Group) HasService ¶
type Unit ¶
type Unit struct { Name string Handling middleware.Handler Handled middleware.Handler Handle middleware.Handler Group *Group }
Click to show internal directories.
Click to hide internal directories.