session

package
v3.94.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusIdle
	StatusInUse
	StatusClosing
	StatusClosed
	StatusError
)

Variables

This section is empty.

Functions

func IsAlive

func IsAlive(status Status) bool

func Open

func Open(
	ctx context.Context, client Ydb_Query_V1.QueryServiceClient, opts ...Option,
) (_ *core, finalErr error)

Types

type Core

type Core interface {
	query.SessionInfo
	pool.Item

	SetStatus(code Status)
}

type Option

type Option func(*core)

func WithConn

func WithConn(cc grpc.ClientConnInterface) Option

func WithDeleteTimeout

func WithDeleteTimeout(deleteTimeout time.Duration) Option

func WithTrace

func WithTrace(t *trace.Query) Option

type Status

type Status uint32

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL