package router
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/router"
Index ¶
Types ¶
type Connection ¶
type Connection interface { Info Router Discoverer }
func New ¶
func New( ctx context.Context, c config.Config, pool *conn.Pool, opts ...discoveryConfig.Option, ) (_ Connection, err error)
type Discoverer ¶
type Info ¶
type Info interface { // Endpoint returns initial endpoint Endpoint() string // Name returns router name Name() string // Secure returns true if router connection is secure Secure() bool }
type Router ¶
type Router interface { // ClientConnInterface interface allows Router use as grpc.ClientConnInterface // with lazy getting raw grpc-connection in Invoke() or NewStream() stages. // Lazy getting grpc-connection must use for embedded into driver client-side // balancing may be put into code-generated client constructor as is. grpc.ClientConnInterface closer.Closer }
Source Files ¶
- Version
- v3.25.1
- Published
- May 11, 2022
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 15 minutes ago –
Tools for package owners.