Versions in this module Expand all Collapse all v1 v1.0.0 Oct 9, 2018 Changes in this version + var ErrUnexpectedTokens = errors.New("Unexpected tokens while reading Cymru response.") + var Timeout = time.Second * 10 + type ASN int + func ParseASN(asn string) (ASN, error) + func (a ASN) String() string + type Client interface + Close func() error + LookupASN func(ASN) (*Response, error) + LookupASNs func([]ASN) ([]Response, error) + LookupIP func(net.IP) (*Response, error) + LookupIPs func([]net.IP) ([]Response, error) + func NewDNSClient() (Client, error) + func NewWhoisClient() (Client, error) + type Name struct + Long string + Raw string + Short string + func ParseName(raw string) Name + func (n Name) String() string + type Response struct + ASN ASN + AllocatedAt time.Time + Country string + IP net.IP + Name Name + Range *net.IPNet + Registry string Other modules containing this package github.com/ammario/ipisp/v2