discovery

package
v20.10.14+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDiscoveryDisabled = errors.New("discovery is disabled")

ErrDiscoveryDisabled is an error returned if the discovery is disabled

Functions

This section is empty.

Types

type Reloader

type Reloader interface {
	discovery.Watcher
	Stop()
	Reload(backend, address string, clusterOpts map[string]string) error
	ReadyCh() <-chan struct{}
}

Reloader is the discovery reloader of the daemon

func Init

func Init(backendAddress, advertiseAddress string, clusterOpts map[string]string) (Reloader, error)

Init initializes the nodes discovery subsystem by connecting to the specified backend and starts a registration loop to advertise the current node under the specified address.

Jump to

Keyboard shortcuts

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