endpoint

package
v3.3.1-fix Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitHostPort added in v3.3.0

func SplitHostPort(addr string) (host string, port int, err error)

func WithID added in v3.3.0

func WithID(id uint32) option

func WithLoadFactor added in v3.3.0

func WithLoadFactor(loadFactor float32) option

func WithLocalDC added in v3.3.0

func WithLocalDC(local bool) 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() string

func (Endpoint) LoadFactor

func (e Endpoint) LoadFactor() float32

func (Endpoint) LocalDC

func (e Endpoint) LocalDC() bool

func (Endpoint) NodeID

func (e Endpoint) NodeID() uint32

Jump to

Keyboard shortcuts

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