Documentation
¶
Index ¶
- Variables
- func FileURLToString(url string) (string, error)
- func LoadFileURLToJSON(url string, to interface{}) error
- func LoadTextURLToRange(url string) ([]string, error)
- type Alibaba
- type Aws
- type Azure
- type Cloudflare
- type Digitalocean
- type Fastly
- type FastlyIPRangeResponse
- type Gcp
- type IPCat
- type IPRange
- type IPRangeSource
- type Ibm
- type Linode
- type Oracle
- type Ovh
- type Scaleway
- type Tencent
- type Ucloud
- type Vercel
Constants ¶
This section is empty.
Variables ¶
View Source
var AlibabaASNs = []string{
"24429",
"45102",
"37963",
}
View Source
var AllSources = []IPRangeSource{ Alibaba{}, Aws{}, Azure{}, Cloudflare{}, Digitalocean{}, Fastly{}, Gcp{}, Ibm{}, Linode{}, Oracle{}, Ovh{}, Scaleway{}, Tencent{}, Ucloud{}, Vercel{}, }
View Source
var LinodeASNs = []string{
"63949",
"48337",
}
View Source
var OvhCloudASN = "16276"
Note: there is also AS22598 for OVHTelecom. But this probably doesn't expose hosting services
View Source
var ScalewayASN = "12876"
View Source
var TencentASNs = []string{
"132591",
"132203",
"45090",
}
View Source
var UcloudASN = "135377"
UCLOUD INFORMATION TECHNOLOGY (HK) LIMITED
Functions ¶
func FileURLToString ¶
func LoadFileURLToJSON ¶
func LoadTextURLToRange ¶
Types ¶
type Alibaba ¶
type Alibaba struct{}
func (Alibaba) GetIPRanges ¶
func (Alibaba) GetProvider ¶ added in v0.1.5
type Azure ¶
type Azure struct{}
func (Azure) GetIPRanges ¶
func (Azure) GetProvider ¶ added in v0.1.5
type Cloudflare ¶
type Cloudflare struct{}
func (Cloudflare) GetIPRanges ¶
func (a Cloudflare) GetIPRanges() []*IPRange
func (Cloudflare) GetProvider ¶ added in v0.1.5
func (a Cloudflare) GetProvider() provider.Provider
type Digitalocean ¶
type Digitalocean struct{}
func (Digitalocean) GetIPRanges ¶
func (a Digitalocean) GetIPRanges() []*IPRange
func (Digitalocean) GetProvider ¶ added in v0.1.5
func (a Digitalocean) GetProvider() provider.Provider
type Fastly ¶
type Fastly struct{}
func (Fastly) GetIPRanges ¶
func (Fastly) GetProvider ¶ added in v0.1.5
type FastlyIPRangeResponse ¶
type IPRange ¶
type IPRange struct { Network *net.IPNet `json:"n"` Cat IPCat `json:"c"` Provider provider.Provider `json:"p"` }
func GetAllIPRanges ¶
func GetAllIPRanges(sources []IPRangeSource) []*IPRange
type IPRangeSource ¶
type Linode ¶
type Linode struct{}
func (Linode) GetIPRanges ¶
func (Linode) GetProvider ¶ added in v0.1.5
type Oracle ¶
type Oracle struct{}
func (Oracle) GetIPRanges ¶
func (Oracle) GetProvider ¶ added in v0.1.5
type Scaleway ¶
type Scaleway struct{}
func (Scaleway) GetIPRanges ¶
func (Scaleway) GetProvider ¶ added in v0.1.5
type Tencent ¶
type Tencent struct{}
func (Tencent) GetIPRanges ¶
func (Tencent) GetProvider ¶ added in v0.1.5
type Ucloud ¶
type Ucloud struct{}
func (Ucloud) GetIPRanges ¶
func (Ucloud) GetProvider ¶ added in v0.1.5
Source Files
¶
Click to show internal directories.
Click to hide internal directories.