resources

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultScripts

func GetDefaultScripts() ([]string, error)

func GetResourceFile

func GetResourceFile(path string) (io.Reader, error)

Types

type IP2ASN

type IP2ASN struct {
	FirstIP     net.IP
	LastIP      net.IP
	ASN         int
	CC          string
	Description string
}

IP2ASN is a range record provided by the iptoasn.com service.

func GetIP2ASNData

func GetIP2ASNData() ([]*IP2ASN, error)

GetIP2ASNData returns all the range records read from the 'ip2asn-combined.tsv.gz' file provided by the iptoasn.com service.

Jump to

Keyboard shortcuts

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