registry

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRegistry = NewMemory()

	// ErrWatcherStopped error when watcher is stopped.
	ErrWatcherStopped = errors.New("watcher stopped")
)

Functions

This section is empty.

Types

type Registry

type Registry interface {
	registry.Registrar
	registry.Discovery
}

Registry The registry provides an interface for service discovery and an abstraction over varying implementations {consul, etcd, zookeeper, ...}.

func NewMemory

func NewMemory() Registry

type Result added in v1.0.5

type Result struct {
	Action  string
	Service *registry.ServiceInstance
}

Result is returned by a call to Next on the watcher. Actions can be create, update, delete.

Jump to

Keyboard shortcuts

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