asnannotator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASNAnnotator added in v0.3.0

type ASNAnnotator interface {
	annotator.Annotator
	Reload(context.Context)
	AnnotateIP(src string) *annotator.Network
}

ASNAnnotator is just a regular annotator with a Reload method and an AnnotateIP method.

func New

func New(ctx context.Context, as4 rawfile.Provider, as6 rawfile.Provider, localIPs []net.IP) ASNAnnotator

New makes a new Annotator that uses IP addresses to lookup ASN metadata for that IP based on the current copy of RouteViews data stored in the given providers.

Jump to

Keyboard shortcuts

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