Documentation ¶
Index ¶
- func GetAppInfo() (interface{}, error)
- func GetConfig(p string) (interface{}, error)
- func GetData(rs interface{}, err error) (interface{}, error)
- func GetResult(rs interface{}, err error) (interface{}, error)
- func MergeData(rs interface{}, err error) (interface{}, error)
- type PBResult
- type RouteScheme
- type RouteSchemeItem
- type Router
- func (R *Router) Add(match func(name string) (string, bool), executor micro.Executor) *Router
- func (R *Router) Alias(alias string, executor micro.Executor) *Router
- func (R *Router) Exec(ctx micro.Context, name string, data interface{}) (interface{}, error)
- func (R *Router) Interceptor(pattern *regexp.Regexp, ...) *Router
- func (R *Router) Rewrite(pattern *regexp.Regexp, to string, executor micro.Executor) *Router
- func (R *Router) Scheme(ctx micro.Context) micro.IScheme
- func (R *Router) Service(alias string, serviceName string) *Router
- func (R *Router) Use(pattern *regexp.Regexp, executor micro.Executor) *Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppInfo ¶
func GetAppInfo() (interface{}, error)
Types ¶
type RouteScheme ¶ added in v1.0.23
type RouteScheme struct {
Items []*RouteSchemeItem `json:"items"`
}
type RouteSchemeItem ¶ added in v1.0.23
type Router ¶ added in v1.0.18
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Interceptor ¶ added in v1.0.27
Click to show internal directories.
Click to hide internal directories.