dn42

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoFeedRow

type GeoFeedRow struct {
	IPNet   *net.IPNet
	CIDR    string
	LtdCode string
	ISO3166 string
	City    string
	ASN     string
	IPWhois string
}

func FindGeoFeedRow

func FindGeoFeedRow(ipStr string, rows []GeoFeedRow) (GeoFeedRow, bool)

func GetGeoFeed

func GetGeoFeed(ip string) (GeoFeedRow, bool)

func ReadGeoFeed

func ReadGeoFeed() ([]GeoFeedRow, error)

type PtrRow

type PtrRow struct {
	IATACode string
	LtdCode  string
	Region   string
	City     string
}

func FindPtrRecord

func FindPtrRecord(ptr string) (PtrRow, error)

Jump to

Keyboard shortcuts

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