endpoint

package
v3.10.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 0 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 struct {
	// contains filtered or unexported fields
}

func New

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

func (Endpoint) Address

func (e Endpoint) Address() (address string)

func (Endpoint) LoadFactor

func (e Endpoint) LoadFactor() float32

func (Endpoint) LocalDC

func (e Endpoint) LocalDC() bool

func (Endpoint) Location added in v3.6.2

func (e Endpoint) Location() string

func (Endpoint) NodeID

func (e Endpoint) NodeID() uint32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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