cluster

package
v3.92.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoEndpoints = xerrors.Wrap(fmt.Errorf("no endpoints"))
	ErrNilPtr      = xerrors.Wrap(fmt.Errorf("nil pointer"))
)

Functions

func WithFallback

func WithFallback(allowFallback bool) option

func WithFilter

func WithFilter(filter func(e endpoint.Info) bool) option

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

func New

func New(endpoints []endpoint.Endpoint, opts ...option) *Cluster

func Without

func Without(s *Cluster, endpoints ...endpoint.Endpoint) *Cluster

func (*Cluster) All

func (s *Cluster) All() (all []endpoint.Endpoint)

func (*Cluster) Next

func (s *Cluster) Next(ctx context.Context) (endpoint.Endpoint, error)

Jump to

Keyboard shortcuts

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