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: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistryDirectory

func NewRegistryDirectory(url *common.URL, registry registry.Registry) (cluster.Directory, error)

NewRegistryDirectory will create a new RegistryDirectory

Types

type RegistryDirectory added in v1.5.0

type RegistryDirectory struct {
	directory.BaseDirectory
	// contains filtered or unexported fields
}

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

func (*RegistryDirectory) Destroy added in v1.5.0

func (dir *RegistryDirectory) Destroy()

Destroy method

func (*RegistryDirectory) IsAvailable added in v1.5.0

func (dir *RegistryDirectory) IsAvailable() bool

IsAvailable whether the directory is available

func (*RegistryDirectory) List added in v1.5.0

func (dir *RegistryDirectory) List(invocation protocol.Invocation) []protocol.Invoker

List selected protocol invokers from the directory

func (*RegistryDirectory) Notify added in v1.5.0

func (dir *RegistryDirectory) Notify(event *registry.ServiceEvent)

Notify monitor changes from registry,and update the cacheServices

func (*RegistryDirectory) NotifyAll added in v1.5.6

func (dir *RegistryDirectory) NotifyAll(events []*registry.ServiceEvent, callback func())

NotifyAll notify the events that are complete Service Event List. After notify the address, the callback func will be invoked.

func (*RegistryDirectory) ServiceHealthState added in v1.5.7

func (dir *RegistryDirectory) ServiceHealthState() *protocol.ServiceHealthState

Fetch ServiceHealthState

Jump to

Keyboard shortcuts

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