asinfo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.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 ASInfo

type ASInfo struct {
	Organization string         // Organization name
	Prefixes     []netip.Prefix // List of IP prefixes (CIDR blocks) owned by this AS
}

ASInfo represents information about an Autonomous System and its IP ranges

type ASInfoMap

type ASInfoMap map[int]*ASInfo

ASInfoMap maps ASN numbers to ASInfo structs

func ParseASInfoCSV

func ParseASInfoCSV(r io.Reader, l *zap.Logger) (ASInfoMap, error)

func ParseASInfoCSVFromFile

func ParseASInfoCSVFromFile(path string, l *zap.Logger) (ASInfoMap, error)

Jump to

Keyboard shortcuts

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