Documentation
¶
Index ¶
- Constants
- 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 ¶
View Source
const LinodeFileURL = "https://raw.githubusercontent.com/devanshbatham/ip2cloud/main/data/linode.txt"
Variables ¶
View Source
var AllSources = []IPRangeSource{ Alibaba{}, Aws{}, Azure{}, Cloudflare{}, Digitalocean{}, Fastly{}, Gcp{}, Ibm{}, Linode{}, Oracle{}, Ovh{}, Scaleway{}, Tencent{}, Ucloud{}, Vercel{}, }
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.