endpoint

package
v3.16.12-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithID

func WithID(id uint32) option

func WithLoadFactor

func WithLoadFactor(loadFactor float32) option

func WithLocalDC

func WithLocalDC(local bool) option

func WithLocation added in v3.6.2

func WithLocation(location string) option

func WithServices added in v3.10.0

func WithServices(services []string) option

Types

type Endpoint

type Endpoint interface {
	fmt.Stringer

	Info

	Copy() Endpoint

	Touch(opts ...option)
}

func New

func New(address string, opts ...option) Endpoint

type Info added in v3.16.10

type Info interface {
	NodeID() uint32
	Address() string
	LocalDC() bool
	Location() string
	LastUpdated() time.Time
	LoadFactor() float32
}

Jump to

Keyboard shortcuts

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