Version: v1.5.6 Latest Latest

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

Go to latest
Published: Apr 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 1




This section is empty.


This section is empty.


func NewStaticDirectory

func NewStaticDirectory(invokers []protocol.Invoker) *staticDirectory

NewStaticDirectory Create a new staticDirectory with invokers


type BaseDirectory

type BaseDirectory struct {
	// contains filtered or unexported fields

BaseDirectory Abstract implementation of Directory: Invoker list returned from this Directory's list method have been filtered by Routers

func NewBaseDirectory

func NewBaseDirectory(url *common.URL) BaseDirectory

NewBaseDirectory Create BaseDirectory with URL

func (*BaseDirectory) Destroy

func (dir *BaseDirectory) Destroy(doDestroy func())

Destroy Destroy

func (*BaseDirectory) GetDirectoryUrl

func (dir *BaseDirectory) GetDirectoryUrl() *common.URL

GetDirectoryUrl Get URL instance

func (*BaseDirectory) GetUrl

func (dir *BaseDirectory) GetUrl() *common.URL

GetUrl Get URL

func (*BaseDirectory) IsAvailable

func (dir *BaseDirectory) IsAvailable() bool

IsAvailable Once directory init finish, it will change to true

func (*BaseDirectory) RouterChain

func (dir *BaseDirectory) RouterChain() router.Chain

RouterChain Return router chain in directory

func (*BaseDirectory) SetRouterChain

func (dir *BaseDirectory) SetRouterChain(routerChain router.Chain)

SetRouterChain Set router chain in directory

func (*BaseDirectory) SetRouters

func (dir *BaseDirectory) SetRouters(urls []*common.URL)

SetRouters Convert url to routers and add them into dir.routerChain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to