Versions in this module Expand all Collapse all v3 v3.8.0 May 1, 2026 Changes in this version + func IsConnRefusedErr(err error) bool + func IsConnResetErr(err error) bool + func IsNetworkOrHostDown(err error, expectTimeouts bool) bool + type Host struct + IsPortSet bool + Name string + Port Port + func ParseHost(s string) (*Host, error) + func (host *Host) UnmarshalJSON(data []byte) (err error) + func (host Host) Equal(compHost Host) bool + func (host Host) IsEmpty() bool + func (host Host) MarshalJSON() ([]byte, error) + func (host Host) String() string + type Port uint16 + func GetFreePort() (Port, error) + func GetNextFreePort(port string) (Port, error) + func ParsePort(s string) (p Port, err error) + func (p Port) String() string + type TCPConfig struct + IdleTimeout time.Duration + Interface string + NoDelay bool + RecvBufSize int + SendBufSize int + Trace func(string) + UserTimeout time.Duration + func (c *TCPConfig) Clone() *TCPConfig + func (c *TCPConfig) Control(network, address string, rc syscall.RawConn) error + type URL url.URL + func ParseHTTPURL(s string) (u *URL, err error) + func ParseURL(s string) (u *URL, err error) + func (u *URL) UnmarshalJSON(data []byte) (err error) + func (u URL) Hostname() string + func (u URL) IsEmpty() bool + func (u URL) MarshalJSON() ([]byte, error) + func (u URL) Port() string + func (u URL) String() string