endpoint

package
v3.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(host string, port int) string

Types

type Addr

type Addr struct {
	Host string
	Port int
}

func (Addr) Address

func (c Addr) Address() string

func (Addr) String

func (c Addr) String() string

type Endpoint

type Endpoint struct {
	Addr

	ID         NodeID
	LoadFactor float32
	Local      bool
}

func New

func New(address string) (e Endpoint, err error)

func (Endpoint) Address

func (e Endpoint) Address() string

func (Endpoint) LocalDC

func (e Endpoint) LocalDC() bool

func (Endpoint) NodeID

func (e Endpoint) NodeID() NodeID

type NodeID

type NodeID uint32

Jump to

Keyboard shortcuts

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