package dial

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/dial"

Index

Variables

var (
	// DefaultKeepaliveInterval contains default duration between grpc keepalive
	DefaultKeepaliveInterval = 10 * time.Second
	MinKeepaliveInterval     = 10 * time.Second
	DefaultGRPCMsgSize       = 64 * 1024 * 1024 // 64MB
)
var (
	DefaultGrpcConnectionPolicy = keepalive.ClientParameters{
		Time:                DefaultKeepaliveInterval,
		Timeout:             MinKeepaliveInterval,
		PermitWithoutStream: true,
	}
)

Functions

func Dial

func Dial(ctx context.Context, c config.Config) (_ public.Cluster, err error)

Dial dials given addr and initializes driver instance on success.

Source Files

cluster.go conn.go dialer.go discovery.go keepalive.go

Version
v3.5.0-rc0
Published
Dec 19, 2021
Platform
js/wasm
Imports
22 packages
Last checked
28 minutes ago

Tools for package owners.