cdn

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalManager = &Manager{}

Functions

func CheckIPsForCDN

func CheckIPsForCDN(ips []string) (map[string]bool, error)

CheckIPsForCDN uses ip-api.com batch API to check if IPs are related to CDNs It limits requests to 100 IPs per batch.

Types

type IPAPIResponse

type IPAPIResponse struct {
	Query  string `json:"query"`
	Status string `json:"status"`
	ISP    string `json:"isp"`
	Org    string `json:"org"`
	AS     string `json:"as"`
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func (*Manager) IsCDN

func (m *Manager) IsCDN(ipStr string) bool

func (*Manager) Update

func (m *Manager) Update()

Jump to

Keyboard shortcuts

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