Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnexpectedTokens = errors.New("an unexpect token was received while reading response")
)
Functions ¶
This section is empty.
Types ¶
type ASN ¶
type ASN int
ASN represents an Autonomous Systems Number. See https://en.wikipedia.org/wiki/Autonomous_system_(Internet).
type BulkClient ¶
type BulkClient struct {
// contains filtered or unexported fields
}
BulkClient uses the WHOIS service to conduct bulk lookups.
func DialBulkClient ¶
func DialBulkClient(ctx context.Context) (*BulkClient, error)
DialBulkClient returns a connected WHOIS client. This client should be used for bulk lookups.
func (*BulkClient) Close ¶
func (c *BulkClient) Close() error
func (*BulkClient) LookupASNs ¶
func (c *BulkClient) LookupASNs(asns ...ASN) ([]Response, error)
LookupASNs looks up ASNs. Response IP and Range fields are zeroed
Click to show internal directories.
Click to hide internal directories.