package endpoint

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/driver/cluster/balancer/conn/endpoint"

Index

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

Source Files

addr.go endpoint.go

Version
v3.0.2
Published
Oct 22, 2021
Platform
darwin/amd64
Imports
2 packages
Last checked
2 seconds ago

Tools for package owners.