Documentation
¶
Index ¶
- Variables
- func Author() string
- func CreateSOCKS5HDialer(proxyURL string) (proxy.Dialer, error)
- func IsASN(s string) bool
- func License() string
- func Version() string
- func Whois(domain string, servers ...string) (string, 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) (string, 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()
Functions ¶
func CreateSOCKS5HDialer ¶
CreateSOCKS5HDialer parses socks5h://user:pass@host:port
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetDisableReferral ¶
func (*Client) SetDisableReferralChain ¶
func (*Client) SetDisableStats ¶
Click to show internal directories.
Click to hide internal directories.