dbSvrConnPool

package
v0.0.0-...-84fc14a Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnData

type ConnData struct {
	Conn   *grpc.ClientConn
	Client pb.DbSvrClient
}

type DBSvrConnPool

type DBSvrConnPool struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*DBSvrConnPool) Init

func (p *DBSvrConnPool) Init(size int, svrUrl string) error

func (*DBSvrConnPool) ReturnConn

func (p *DBSvrConnPool) ReturnConn(client *ConnData)

func (*DBSvrConnPool) WaitForOneConn

func (p *DBSvrConnPool) WaitForOneConn(ctx context.Context) (*ConnData, error)

Jump to

Keyboard shortcuts

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