Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2021 Changes in this version + var ErrBadDialer = errors.New("bad dialer") + var ErrConnectionFailed = errors.New("could not establish connection") + var ErrDBServerEmpty = errors.New("empty whois server database") + var ErrEmptyResponse = errors.New("empty whois response") + var ErrTimeout = errors.New("timeout") + var ErrWHOISHostNotFound = errors.New("whois host not found") + type Client struct + func NewClient(dialer Dialer) (*Client, error) + func (c *Client) Clone(dialer interface{}) (*Client, error) + func (c *Client) Hosts() []string + func (c *Client) Lookup(ctx context.Context, domain string) (string, error) + func (c *Client) LookupHost(ctx context.Context, domain, host string) (string, error) + func (c *Client) Split(domain string) (name, tld, host string, err error) + type Dialer interface + DialContext func(ctx context.Context, network, address string) (net.Conn, error)