package conn
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/conn"
Index ¶
- Constants
- func WithoutWrapping(ctx context.Context) context.Context
- type Config
- type Conn
- type Getter
- type Pessimizer
- type Pool
- type PoolConfig
- type Releaser
- type State
- type Taker
Constants ¶
Functions ¶
func WithoutWrapping ¶
Types ¶
type Config ¶
type Config interface { DialTimeout() time.Duration Trace() trace.Driver ConnectionTTL() time.Duration GrpcDialOptions() []grpc.DialOption UseDNSResolver() bool }
type Conn ¶
type Conn interface { grpc.ClientConnInterface Endpoint() endpoint.Endpoint LastUsage() time.Time Ping(ctx context.Context) error IsState(states ...State) bool GetState() State SetState(State) State Release(ctx context.Context) error }
func New ¶
type Getter ¶
type Pessimizer ¶
type Pool ¶
type Pool interface { Getter Taker Releaser Pessimizer }
func NewPool ¶
type PoolConfig ¶
type PoolConfig interface { ConnectionTTL() time.Duration GrpcDialOptions() []grpc.DialOption }
type Releaser ¶
type State ¶
type State int8
func (State) Code ¶
func (State) IsValid ¶
func (State) String ¶
type Taker ¶
Source Files ¶
config.go conn.go context.go grpc_client_stream.go pool.go state.go
- Version
- v3.18.5
- Published
- Apr 7, 2022
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 1 minute ago –
Tools for package owners.