Documentation
¶
Index ¶
- Variables
- func Author() string
- func IsASN(s string) bool
- func License() string
- func Version() string
- func Whois(domain string, servers ...string) (result string, err error)
- type Client
- func (c *Client) SetDialer(dialer proxy.Dialer) *Client
- func (c *Client) SetDisableReferral(disabled bool) *Client
- func (c *Client) SetDisableReferralChain(disabled bool) *Client
- func (c *Client) SetDisableStats(disabled bool) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- func (c *Client) Whois(domain string, servers ...string) (result string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDomainEmpty is domain is an empty string ErrDomainEmpty = errors.New("whois: domain is empty") // ErrWhoisServerNotFound is no whois server found ErrWhoisServerNotFound = errors.New("whois: no whois server found for domain") )
View Source
var DefaultClient = NewClient()
DefaultClient is default whois client
Functions ¶
Types ¶
type Client ¶ added in v1.10.0
type Client struct {
// contains filtered or unexported fields
}
Client is whois client
func (*Client) SetDisableReferral ¶ added in v1.15.1
SetDisableReferral if set to true, will not query the referral server.
func (*Client) SetDisableReferralChain ¶ added in v1.15.6
SetDisableReferralChain controls whether to keep all WHOIS responses in the output
func (*Client) SetDisableStats ¶ added in v1.15.0
SetDisableStats set disable stats
func (*Client) SetTimeout ¶ added in v1.10.0
SetTimeout set query timeout
Click to show internal directories.
Click to hide internal directories.