package conn
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/conn"
Index ¶
- Constants
- type Config
- type Conn
- type Pessimizer
- type Pool
- type PoolConfig
- type PoolGetter
- type PoolGetterCloser
- type State
Constants ¶
Types ¶
type Config ¶
type Config interface { DialTimeout() time.Duration Trace() trace.Driver ConnectionTTL() time.Duration GrpcDialOptions() []grpc.DialOption }
type Conn ¶
type Conn interface { grpc.ClientConnInterface Endpoint() endpoint.Endpoint IsState(states ...State) bool GetState() State SetState(context.Context, State) State Close(ctx context.Context) error Park(ctx context.Context) error TTL() <-chan time.Time }
func New ¶
type Pessimizer ¶
type Pool ¶
type Pool interface { closer.Closer Pessimizer PoolGetter }
func NewPool ¶
type PoolConfig ¶
type PoolConfig interface { ConnectionTTL() time.Duration GrpcDialOptions() []grpc.DialOption }
type PoolGetter ¶
type PoolGetterCloser ¶
type PoolGetterCloser interface { PoolGetter closer.Closer }
type State ¶
type State int8
func (State) Code ¶
func (State) IsValid ¶
func (State) String ¶
Source Files ¶
config.go conn.go grpc_client_stream.go pool.go state.go
- Version
- v3.11.3
- Published
- Feb 22, 2022
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 1 minute ago –
Tools for package owners.