Documentation ¶
Index ¶
- type ConnectObject
- type ConnectPool
- func (connectPool *ConnectPool) CheckErrorForPutConnect(c *net.TCPConn, target string, err error)
- func (connectPool *ConnectPool) Get(targetAddr string) (c *net.TCPConn, err error)
- func (connectPool *ConnectPool) Put(c *net.TCPConn, forceClose bool)
- func (connectPool *ConnectPool) ReleaseAllConnect(target string)
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectObject ¶
type ConnectObject struct {
// contains filtered or unexported fields
}
type ConnectPool ¶
func NewConnPool ¶
func NewConnPool() (connectPool *ConnectPool)
func (*ConnectPool) CheckErrorForPutConnect ¶
func (connectPool *ConnectPool) CheckErrorForPutConnect(c *net.TCPConn, target string, err error)
func (*ConnectPool) Get ¶
func (connectPool *ConnectPool) Get(targetAddr string) (c *net.TCPConn, err error)
func (*ConnectPool) ReleaseAllConnect ¶
func (connectPool *ConnectPool) ReleaseAllConnect(target string)
Click to show internal directories.
Click to hide internal directories.