registry

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	Register(service *Service) error
	Deregister(service *Service) error
	GetService(name string) ([]*Service, error)
	Watch(name string) Watcher
}

type Result

type Result struct {
	Action  string
	Service *Service
}

type Service

type Service struct {
	Scheme   string
	Name     string
	Address  string
	Weight   int
	Metadata map[string]string
}

type Watcher

type Watcher interface {
	Next() (*Result, error)
	Stop()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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