Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ProviderAmazon is AWS ProviderAmazon = "Amazon Web Services" // ProviderGoogle is Google Cloud ProviderGoogle = "Google Cloud" // ProviderMicrosoft is Microsoft Azure ProviderMicrosoft = "Microsoft Azure" )
Variables ¶
View Source
var ( // ErrNotCloudIP is error returned when IP does not match any of the published list of ranges ErrNotCloudIP = errors.New("not resolved to any known cloud IP range") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// Time to keep IP ranges cached for (default 12 hours)
TTL time.Duration
// contains filtered or unexported fields
}
Client will eventually hold cache of IP ranges
func DefaultClient ¶
func DefaultClient() *Client
DefaultClient is the default Client for resolving requests
Click to show internal directories.
Click to hide internal directories.