Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooManyRequests = errors.New("too many requests sent") ErrBadHTTPStatus = errors.New("bad HTTP status received") )
View Source
var ErrUnknownProvider = errors.New("unknown public IP information provider")
Functions ¶
func ValidateProvider ¶
Types ¶
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
func (*Info) Get ¶
Get finds IP information for the given IP address using one of the ip data provider picked at random. A `nil` IP address can be given to signal to fetch information on the current public IP address.
func (*Info) GetMultiple ¶
GetMultiple finds IP information for the given IP addresses, each using one of the ip data provider picked at random. It returns a slice of results matching the order of the IP addresses given as argument.
Click to show internal directories.
Click to hide internal directories.