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 content.Provider, as6 content.Provider, asnamedata content.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.
Click to show internal directories.
Click to hide internal directories.