ipannotator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReloadingAnnotator

type ReloadingAnnotator interface {
	annotator.Annotator
	Reload(context.Context)
}

ReloadingAnnotator is just a regular annotator with a Reload method.

func New

func New(ctx context.Context, geo zipfile.Provider, localIPs []net.IP) ReloadingAnnotator

New makes a new Annotator that uses IP addresses to generate geolocation and ASNumber metadata for that IP based on the current copy of MaxMind data stored in GCS.

Jump to

Keyboard shortcuts

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