Documentation ¶
Index ¶
- func AddFreeConnections(n int64) int64
- func AddReusedConnections(n int64) int64
- func LoadFreeConnections(n int64) int64
- func LoadReusedConnections(n int64) int64
- type Conn
- func (s *Conn) Close() error
- func (s *Conn) ConnectionState() tls.ConnectionState
- func (s *Conn) File() (*os.File, error)
- func (s *Conn) GetCreated() int64
- func (s *Conn) GetLasted() int64
- func (s *Conn) GetRawConn() net.Conn
- func (s *Conn) GetUsed() int64
- func (s *Conn) IncrUsed()
- func (s *Conn) LocalAddr() net.Addr
- func (s *Conn) Read(b []byte) (n int, err error)
- func (s *Conn) RemoteAddr() net.Addr
- func (s *Conn) SetDeadline(t time.Time) error
- func (s *Conn) SetReadDeadline(t time.Time) error
- func (s *Conn) SetWriteDeadline(t time.Time) error
- func (s *Conn) SyscallConn() (syscall.RawConn, error)
- func (s *Conn) Write(b []byte) (n int, err error)
- type TLSConnectionStater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFreeConnections ¶
func AddReusedConnections ¶
func LoadFreeConnections ¶
func LoadReusedConnections ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) ConnectionState ¶
func (s *Conn) ConnectionState() tls.ConnectionState
func (*Conn) GetCreated ¶
func (*Conn) GetRawConn ¶
func (*Conn) RemoteAddr ¶
type TLSConnectionStater ¶
type TLSConnectionStater interface {
ConnectionState() tls.ConnectionState
}
Click to show internal directories.
Click to hide internal directories.