endpoint

package
v3.13.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithID

func WithID(id uint32) option

func WithLastUpdated added in v3.11.8

func WithLastUpdated(ts time.Time) 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 {
	Info() info.Info
	String() string
	Copy() Endpoint

	NodeID() uint32
	Address() string
	Location() string
	LocalDC() bool
	LoadFactor() float32
	LastUpdated() time.Time

	Touch(opts ...option)
}

func New

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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