Documentation ¶
Overview ¶
Package ipisp provides a wrapper to team-cymru.com IP to ASN service. ipisp uses Cymru's netcat interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnexpectedTokens = errors.New("Unexpected tokens while reading Cymru response.")
)
Common errors
View Source
var Timeout = time.Second * 10
Timeout is the TCP connection timeout
Functions ¶
func NewDnsClient ¶
func NewDnsClient() (client *dnsClient, err error)
func NewWhoisClient ¶
func NewWhoisClient() (client *whoisClient, err error)
NewClient returns a pointer to a new connected IPISP client
Types ¶
type Country ¶
Country encapsulates an ISO_3166-1 country and name
func NewCountryFromCode ¶
NewCountryFromCode returns a country from a country code
Source Files ¶
Click to show internal directories.
Click to hide internal directories.