package endpoint

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"

Index

Functions

func WithID

func WithID(id uint32) option

func WithLoadFactor

func WithLoadFactor(loadFactor float32) option

func WithLocalDC

func WithLocalDC(local bool) option

func WithLocation

func WithLocation(location 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() string

func (Endpoint) LoadFactor

func (e Endpoint) LoadFactor() float32

func (Endpoint) LocalDC

func (e Endpoint) LocalDC() bool

func (Endpoint) Location

func (e Endpoint) Location() string

func (Endpoint) NodeID

func (e Endpoint) NodeID() uint32

Source Files

endpoint.go

Directories

PathSynopsis
internal/endpoint/info
Version
v3.8.12
Published
Feb 8, 2022
Platform
linux/amd64
Last checked
4 minutes ago

Tools for package owners.