Versions in this module Expand all Collapse all v2 v2.0.1 Apr 16, 2022 v2.0.0 Dec 25, 2021 Changes in this version + var ErrUnexpectedTokens = errors.New("an unexpect token was received while reading response") + type ASN int + func ParseASN(asn string) (ASN, error) + func (a ASN) String() string + type BulkClient struct + Conn net.Conn + func DialBulkClient(ctx context.Context) (*BulkClient, error) + func (c *BulkClient) Close() error + func (c *BulkClient) LookupASNs(asns ...ASN) ([]Response, error) + func (c *BulkClient) LookupIPs(ips ...net.IP) ([]Response, error) + type Response struct + ASN ASN + AllocatedAt time.Time + Country string + IP net.IP + ISPName string + Range *net.IPNet + Registry string + func LookupASN(ctx context.Context, asn ASN) (*Response, error) + func LookupIP(ctx context.Context, ip net.IP) (*Response, error) Other modules containing this package github.com/ammario/ipisp