asn

package
v1.1.34 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient *asnmap.Client

Functions

func GetCIDRsForASNNum added in v1.1.0

func GetCIDRsForASNNum(value string) ([]*net.IPNet, error)

GetCIDRsForASNNum returns the slice of cidrs for given ASN number accept the ASN number like 'AS15133' and returns the CIDRs for that ASN

func GetIPAddressesAsStream added in v1.1.0

func GetIPAddressesAsStream(value string) (chan string, error)

GetIPAddressesAsStream returns the chan of IP address for given ASN number returning the string chan for optimizing the memory

func IsASN

func IsASN(value string) bool

IsASN checks if the given input is ASN or not, its possible to have an domain name starting with AS/as prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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