dn42

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 30, 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