isps

package
v0.0.0-...-1ba8743 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GOOGLE_URL string = "https://www.gstatic.com/ipranges/goog.json"
	GCP_URL    string = "https://www.gstatic.com/ipranges/cloud.json"
)
View Source
const AWS_URL string = "https://ip-ranges.amazonaws.com/ip-ranges.json"
View Source
const VULTR_URL string = "https://geofeed.constant.com/?json"

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Prefixes []struct {
		IPPrefix string `json:"ip_prefix"`
	} `json:"prefixes"`

	IPv6Prefixes []struct {
		IPPrefix string `json:"ipv6_prefix"`
	} `json:"ipv6_prefixes"`
}

func (*AWS) Name

func (aws *AWS) Name() string

func (*AWS) SubnetList

func (aws *AWS) SubnetList() ([]string, error)

type Google

type Google struct {
	Prefixes []struct {
		IPv4Prefix string `json:"ipv4Prefix"`
		IPv6Prefix string `json:"ipv6Prefix"`
	} `json:"prefixes"`
}

func (*Google) Name

func (g *Google) Name() string

func (*Google) SubnetList

func (g *Google) SubnetList() ([]string, error)

type Interface

type Interface interface {
	Name() string
	SubnetList() ([]string, error)
}

type Vultr

type Vultr struct {
	Subnets []struct {
		Prefix string `json:"ip_prefix"`
	}
}

func (*Vultr) Name

func (vultr *Vultr) Name() string

func (*Vultr) SubnetList

func (vultr *Vultr) SubnetList() ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL