cluster

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithNodeID

func WithNodeID(ctx context.Context, nodeID NodeID) context.Context

Types

type ClientConnInterface

type ClientConnInterface interface {
	grpc.ClientConnInterface

	Endpoint() endpoint.Endpoint
}

type Cluster

type Cluster interface {
	// ClientConnInterface interface allows DB use as grpc.ClientConnInterface
	// with lazy getting raw grpc-connection in Invoke() or NewStream() stages.
	// Lazy getting grpc-connection must use for embedded client-side balancing
	// DB may be put into code-generated client constructor as is.
	grpc.ClientConnInterface

	// Close clears resources and close all connections to YDB
	Close(ctx context.Context) error
}

type NodeID

type NodeID uint32

func ContextNodeID

func ContextNodeID(ctx context.Context) (nodeID NodeID, ok bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL