discovery

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTargetNotFound shoould be returned when a target lookup by host
	// or name fails
	ErrTargetNotFound = errors.New("target not found")
)

Possible errors returned by disovery clients

Functions

This section is empty.

Types

type Client

type Client interface {
	LookupTargetByHost(host string) (config.Target, error)
	LookupTargetByName(name string) (config.Target, error)
	GetTargets() []config.Target
	Refresh(ctx context.Context) error
}

Client is for discovering new database servers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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