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) 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 ¶
type Client struct {
// contains filtered or unexported fields
}
Client is whois client
func (*Client) SetDisableReferral ¶
SetDisableReferral if set to true, will not query the referral server.
func (*Client) SetDisableStats ¶
SetDisableStats set disable stats
func (*Client) SetTimeout ¶
SetTimeout set query timeout
Click to show internal directories.
Click to hide internal directories.