package endpoint

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

Index

Functions

func SplitHostPort

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

func WithID

func WithID(id uint32) option

func WithLoadFactor

func WithLoadFactor(loadFactor float32) option

func WithLocalDC

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

Source Files

endpoint.go

Version
v3.4.2
Published
Nov 19, 2021
Platform
darwin/amd64
Imports
2 packages
Last checked
1 second ago

Tools for package owners.