Documentation ¶
Index ¶
- func NewTagRouterFactory() router.PriorityRouterFactory
- type PriorityRouter
- func (p *PriorityRouter) Notify(invokers []protocol.Invoker)
- func (p *PriorityRouter) Priority() int64
- func (p *PriorityRouter) Process(event *config_center.ConfigChangeEvent)
- func (p *PriorityRouter) Route(invokers []protocol.Invoker, url *common.URL, invocation protocol.Invocation) []protocol.Invoker
- func (p *PriorityRouter) URL() *common.URL
- type RouteFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTagRouterFactory ¶
func NewTagRouterFactory() router.PriorityRouterFactory
NewTagRouterFactory constructs a new PriorityRouterFactory
Types ¶
type PriorityRouter ¶
type PriorityRouter struct {
// contains filtered or unexported fields
}
func NewTagPriorityRouter ¶
func NewTagPriorityRouter() (*PriorityRouter, error)
func (*PriorityRouter) Notify ¶
func (p *PriorityRouter) Notify(invokers []protocol.Invoker)
func (*PriorityRouter) Priority ¶
func (p *PriorityRouter) Priority() int64
func (*PriorityRouter) Process ¶
func (p *PriorityRouter) Process(event *config_center.ConfigChangeEvent)
func (*PriorityRouter) Route ¶
func (p *PriorityRouter) Route(invokers []protocol.Invoker, url *common.URL, invocation protocol.Invocation) []protocol.Invoker
Route Determine the target invokers list.
func (*PriorityRouter) URL ¶
func (p *PriorityRouter) URL() *common.URL
type RouteFactory ¶
type RouteFactory struct{}
RouteFactory router factory
func (*RouteFactory) NewPriorityRouter ¶
func (f *RouteFactory) NewPriorityRouter() (router.PriorityRouter, error)
NewPriorityRouter construct a new PriorityRouter
Click to show internal directories.
Click to hide internal directories.