directory

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

Types

type RegistryDirectory

type RegistryDirectory struct {
	base.Directory
	// 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.

Jump to

Keyboard shortcuts

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