ip2asn

package module
v0.0.0-...-1069e33 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Overview

Package ip2asn parses the export files from iptoasn.com.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func OpenFile

func OpenFile(filename string) (*Map, error)

func OpenReader

func OpenReader(r io.Reader) (*Map, error)

func (*Map) ASCountry

func (m *Map) ASCountry(as int) string

func (*Map) ASName

func (m *Map) ASName(as int) string

func (*Map) ASofIP

func (m *Map) ASofIP(ip netip.Addr) int

ASofIP returns 0 on unknown.

Jump to

Keyboard shortcuts

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