directory

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Overview

Package directory implements registry around file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistryDirectory

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

NewRegistryDirectory will create a new RegistryDirectory

func NewServiceDiscoveryRegistryDirectory added in v3.1.1

func NewServiceDiscoveryRegistryDirectory(url *common.URL, registry registry.Registry) (directory.Directory, error)

NewServiceDiscoveryRegistryDirectory will create a new ServiceDiscoveryRegistryDirectory

Types

type RegistryDirectory

type RegistryDirectory struct {
	*base.Directory

	SubscribedUrl *common.URL
	RegisteredUrl *common.URL
	// 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

func (dir *RegistryDirectory) Destroy()

Destroy method

func (*RegistryDirectory) IsAvailable

func (dir *RegistryDirectory) IsAvailable() bool

IsAvailable whether the directory is available

func (*RegistryDirectory) List

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

List selected protocol invokers from the directory

func (*RegistryDirectory) Notify

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

Notify monitor changes from registry,and update the cacheServices

func (*RegistryDirectory) NotifyAll

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) Subscribe added in v3.1.0

func (dir *RegistryDirectory) Subscribe(url *common.URL) error

subscribe from registry

type ServiceDiscoveryRegistryDirectory added in v3.1.1

type ServiceDiscoveryRegistryDirectory struct {
	*base.Directory
	*RegistryDirectory
}

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

func (*ServiceDiscoveryRegistryDirectory) List added in v3.1.1

List selected protocol invokers from the directory

func (*ServiceDiscoveryRegistryDirectory) Subscribe added in v3.1.1

func (dir *ServiceDiscoveryRegistryDirectory) Subscribe(url *common.URL) error

Subscribe do subscribe from registry

Jump to

Keyboard shortcuts

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