github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/balancers/context.go (about) 1 package balancers 2 3 import ( 4 "context" 5 6 "github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint" 7 ) 8 9 // WithNodeID returns the copy of context with NodeID which the client balancer will 10 // prefer on step of choose YDB endpoint step 11 // 12 // Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental 13 func WithNodeID(ctx context.Context, nodeID uint32) context.Context { 14 return endpoint.WithNodeID(ctx, nodeID) 15 }