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

func WithServices

func WithServices(services []string) option

Types

type Endpoint

type Endpoint interface {
	fmt.Stringer

	Info() info.Info
	Copy() Endpoint

	NodeID() uint32
	Address() string
	Location() string
	LocalDC() bool
	LoadFactor() float32
	LastUpdated() time.Time

	Touch(opts ...option)
}

func New

func New(address string, opts ...option) Endpoint

Source Files

endpoint.go

Directories

PathSynopsis
internal/endpoint/info
Version
v3.16.0
Published
Mar 19, 2022
Platform
js/wasm
Imports
4 packages
Last checked
6 seconds ago

Tools for package owners.