Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenNotValid = errors.New("token is not valid") ErrTooManyRequests = errors.New("too many requests sent for this month") ErrBadHTTPStatus = errors.New("bad HTTP status received") )
View Source
var (
ErrProviderNotValid = errors.New("API name is not valid")
)
Functions ¶
func FetchMultiInfo ¶
func FetchMultiInfo(ctx context.Context, fetcher Fetcher, ips []netip.Addr) ( results []models.PublicIP, err error)
FetchMultiInfo obtains the public IP address information for every IP addresses provided and returns a slice of results with the corresponding order as to the IP addresses slice order. If an error is encountered, all the operations are canceled and an error is returned, so the results returned should be considered incomplete in this case.
Types ¶
type API ¶
Click to show internal directories.
Click to hide internal directories.