cluster

package
v3.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithEndpoint added in v3.2.6

func WithEndpoint(ctx context.Context, endpoint Endpoint) context.Context

Types

type ClientConnInterface

type ClientConnInterface interface {
	grpc.ClientConnInterface

	Address() string
}

type Cluster

type Cluster interface {
	// ClientConnInterface interface allows Cluster 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 Endpoint added in v3.2.6

type Endpoint interface {
	Address() string
}

func ContextEndpoint added in v3.2.6

func ContextEndpoint(ctx context.Context) (e Endpoint, ok bool)

Jump to

Keyboard shortcuts

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