Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnStater ¶
ConnStater is the interface to get the ConnState of a connection. Must call Close to release it if you're going to close the connection.
func ListenConnState ¶
func ListenConnState(conn net.Conn) (ConnStater, error)
ListenConnState returns a ConnStater for the given connection. It's generally used for availability checks when obtaining connections from a connection pool. Conn must be a syscall.Conn.
Click to show internal directories.
Click to hide internal directories.