directory

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStaticDirectory

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

NewStaticDirectory Create a new staticDirectory with invokers

Types

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) AddRouters added in v1.5.7

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

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

func (*BaseDirectory) Destroy

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

Destroy Destroy

func (*BaseDirectory) GetDirectoryUrl added in v1.2.0

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

GetDirectoryUrl Get URL instance

func (*BaseDirectory) GetURL added in v1.5.7

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 added in v1.4.0

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

RouterChain Return router chain in directory

func (*BaseDirectory) SetRouterChain added in v1.4.0

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

SetRouterChain Set router chain in directory

Jump to

Keyboard shortcuts

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