package endpoint
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"
Index ¶
- func ContextNodeID(ctx context.Context) (nodeID uint32, ok bool)
- func New(address string, opts ...Option) *endpoint
- func WithNodeID(ctx context.Context, nodeID uint32) context.Context
- type Endpoint
- type Info
- type NodeID
- type Option
Functions ¶
func ContextNodeID ¶
func New ¶
func WithNodeID ¶
Types ¶
type Endpoint ¶
type Info ¶
type Info interface { NodeID Address() string Location() string LastUpdated() time.Time LoadFactor() float32 // Deprecated: LocalDC check "local" by compare endpoint location with discovery "selflocation" field. // It work good only if connection url always point to local dc. // Will be removed after Oct 2024. // Read about versioning policy: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#deprecated LocalDC() bool }
type NodeID ¶
type NodeID interface { NodeID() uint32 }
type Option ¶
type Option func(e *endpoint)
func WithID ¶
func WithLastUpdated ¶
func WithLoadFactor ¶
func WithLocalDC ¶
func WithLocation ¶
func WithServices ¶
Source Files ¶
- Version
- v3.76.4
- Published
- Aug 9, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 4 minutes ago –
Tools for package owners.