package cluster
import "github.com/ydb-platform/ydb-go-sdk/v3/cluster"
Index ¶
- func WithNodeID(ctx context.Context, nodeID NodeID) context.Context
- type ClientConnInterface
- type Cluster
- type NodeID
Functions ¶
func WithNodeID ¶
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 ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cluster/stats | |
cluster/stats/state |
- Version
- v3.2.1
- Published
- Oct 28, 2021
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 1 second ago –
Tools for package owners.