tag

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL