directory

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClosingInstanceRemover added in v3.3.2

type ClosingInstanceRemover interface {
	RemoveClosingInstance(instanceKey string) bool
}

ClosingInstanceRemover is an optional directory capability used by graceful shutdown. Implementations remove a single cached service instance identified by instanceKey.

type Directory

type Directory interface {
	common.Node

	// List candidate invoker list for the current Directory.
	// NOTICE: The invoker list returned to the caller may be backed by the same data hold by the current Directory
	// implementation for the sake of performance consideration. This requires the caller of List() shouldn't modify
	// the return result directly.
	List(invocation base.Invocation) []base.Invoker

	// Subscribe listen to registry instances
	Subscribe(url *common.URL) error
}

Directory implementations include RegistryDirectory, ServiceDiscoveryRegistryDirectory, StaticDirectory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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