selector

package
v0.0.0-...-82b0641 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound      = errors.New("not found")
	ErrNoneAvailable = errors.New("none available")
)

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func BalancerName

func BalancerName(b string) Option

func Filter

func Filter(fn ...registry.Filter) Option

type Options

type Options struct {
	Balancer string
	Filters  []registry.Filter

	Context context.Context
}

type Selector

type Selector interface {
	GetService(service string) ([]*registry.Service, error)
	Watch(service string) (registry.Watcher, error)
	Address(service string) string
	Options() Options
	Close() error
	String() string
}

Directories

Path Synopsis
Package static provides a static resolver which returns the name/ip passed in without any change
Package static provides a static resolver which returns the name/ip passed in without any change

Jump to

Keyboard shortcuts

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