Documentation ¶
Overview ¶
Package directory implements registry around file system.
Index ¶
- func NewRegistryDirectory(url *common.URL, registry registry.Registry) (directory.Directory, error)
- type RegistryDirectory
- func (dir *RegistryDirectory) Destroy()
- func (dir *RegistryDirectory) IsAvailable() bool
- func (dir *RegistryDirectory) List(invocation protocol.Invocation) []protocol.Invoker
- func (dir *RegistryDirectory) Notify(event *registry.ServiceEvent)
- func (dir *RegistryDirectory) NotifyAll(events []*registry.ServiceEvent, callback func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegistryDirectory ¶
RegistryDirectory implementation of Directory: Invoker list returned from this Directory's list method have been filtered by Routers
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.
Click to show internal directories.
Click to hide internal directories.