connectionpool

package
v0.0.0-...-c43210c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnTimeout = errors.New("connection timeout")

Functions

This section is empty.

Types

type ConnectionPool

type ConnectionPool struct {
	// contains filtered or unexported fields
}

func New

func New(addr net.Addr, connectionTimeout time.Duration, maxIdleConnections int) (*ConnectionPool, error)

func (*ConnectionPool) GetConn

func (cp *ConnectionPool) GetConn() (net.Conn, error)

func (*ConnectionPool) PutConn

func (cp *ConnectionPool) PutConn(conn net.Conn)

Jump to

Keyboard shortcuts

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