Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Listen int `json:"listen" yaml:"listen" title:"port" description:"使用端口" default:"80" label:"端口号" maximum:"65535"` ServiceName string `json:"service_name" yaml:"service_name" label:"服务名"` MethodName string `json:"method_name" yaml:"method_name" label:"方法名"` Rules []Rule `json:"rules" yaml:"rules" label:"路由规则"` Service eosc.RequireId `` /* 126-byte string literal not displayed */ Template eosc.RequireId `` /* 132-byte string literal not displayed */ Disable bool `json:"disable" yaml:"disable" label:"禁用路由"` Plugins plugin.Plugins `json:"plugins" yaml:"plugins" label:"插件配置"` Retry int `json:"retry" label:"重试次数" yaml:"retry"` TimeOut int `json:"time_out" label:"超时时间"` Labels map[string]string `json:"labels" label:"路由标签"` }
type DubboRouter ¶
type DubboRouter struct {
// contains filtered or unexported fields
}
func (*DubboRouter) CheckSkill ¶
func (h *DubboRouter) CheckSkill(skill string) bool
func (*DubboRouter) Destroy ¶
func (h *DubboRouter) Destroy() error
func (*DubboRouter) Id ¶
func (h *DubboRouter) Id() string
func (*DubboRouter) Start ¶
func (h *DubboRouter) Start() error
func (*DubboRouter) Stop ¶
func (h *DubboRouter) Stop() error
type RouterDriverFactory ¶
type RouterDriverFactory struct {
eosc.IExtenderDriverFactory
}
RouterDriverFactory dubbo路由驱动工厂结构体
func NewRouterDriverFactory ¶
func NewRouterDriverFactory() *RouterDriverFactory
NewRouterDriverFactory 创建一个http路由驱动工厂
Click to show internal directories.
Click to hide internal directories.