meshrouter

package
v3.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMeshRouter

func NewMeshRouter() (router.PriorityRouter, error)

NewMeshRouter construct an NewConnCheckRouter via url

func NewMeshRouterFactory

func NewMeshRouterFactory() router.PriorityRouterFactory

NewMeshRouterFactory constructs a new PriorityRouterFactory

Types

type MeshRouter

type MeshRouter struct {
	// contains filtered or unexported fields
}

MeshRouter have

func (*MeshRouter) Name

func (r *MeshRouter) Name() string

Name get name of ConnCheckerRouter

func (*MeshRouter) Notify

func (r *MeshRouter) Notify(invokers []protocol.Invoker)

Notify the router the invoker list

func (*MeshRouter) Priority

func (r *MeshRouter) Priority() int64

Priority get Router priority level

func (*MeshRouter) Process

func (r *MeshRouter) Process(event *config_center.ConfigChangeEvent)

Process there is no process needs for uniform Router, as it upper struct RouterChain has done it

func (*MeshRouter) Route

func (r *MeshRouter) Route(invokers []protocol.Invoker, url *common.URL, invocation protocol.Invocation) []protocol.Invoker

Route gets a list of routed invoker

func (*MeshRouter) URL

func (r *MeshRouter) URL() *common.URL

URL Return URL in router

type MeshRouterFactory

type MeshRouterFactory struct{}

MeshRouterFactory is mesh router's factory

func (*MeshRouterFactory) NewPriorityRouter

func (f *MeshRouterFactory) NewPriorityRouter() (router.PriorityRouter, error)

NewPriorityRouter construct a new UniformRouteFactory as PriorityRouter

Jump to

Keyboard shortcuts

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