Versions in this module Expand all Collapse all v0 v0.0.2 Sep 9, 2022 v0.0.1 Sep 9, 2022 Changes in this version + const MIN_SIZE + func GetSysMax() int32 + func Wrapper(p *Pool) net.Conn + type Conn struct + func (cn *Conn) Close() error + func (cn *Conn) LocalAddr() net.Addr + func (cn *Conn) Read(b []byte) (n int, err error) + func (cn *Conn) RemoteAddr() net.Addr + func (cn *Conn) SetDeadline(t time.Time) error + func (cn *Conn) SetReadDeadline(t time.Time) error + func (cn *Conn) SetWriteDeadline(t time.Time) error + func (cn *Conn) Write(b []byte) (n int, err error) + type Opts []interface + func (o Opts) Parse() (*net.Dialer, time.Duration, int32, context.Context) + func (o Opts) WithContext(c context.Context) + func (o Opts) WithDialer(d *net.Dialer) + func (o Opts) WithMinSize(m int32) + func (o Opts) WithTimeout(t time.Duration) + func DefaultOpts() Opts + type Pool struct + Deadline struct{} + func New(remoteAddr string, opts Opts) *Pool + func (p *Pool) Close() + func (p *Pool) Flush() + func (p *Pool) Get() (net.Conn, error) + func (p *Pool) Len() int32 + func (p *Pool) Put(c net.Conn) + func (p *Pool) SetDeadline(t time.Time) + func (p *Pool) SetReadDeadline(t time.Time) + func (p *Pool) SetWriteDeadline(t time.Time) Other modules containing this package github.com/MeteorsLiu/go-tcpConnectionPool/v2