package
0.0.0-20220308170854-f83cb7a5233c
Repository: https://github.com/m-lab/annotation-service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ExtractDateFromFilename return the date for a filename like gs://downloader-mlab-oti/Maxmind/2017/05/08/20170508T080000Z-GeoLiteCity.dat.gz TODO: both geoloader and geolite2 package use this func, so leave it here for now.

# Constants

MaxmindPrefix is the folder containing the maxmind files in GCS.

# Variables

ErrNilOrEmptyASData is returned by BestASN if the ASData is nil or empty.
MaxmindBucketName is the bucket containing maxmind files.

# Structs

Annotations is the main struct for annotation metadata, which holds pointers to the Geolocation data and the IP/ASN data.
ASData contains the Autonomous System information associated with the IP prefix.
The GeolocationIP struct contains all the information needed for the geolocation data that will be inserted into big query.
The RequestData schema is the schema for the json that we will send down the pipe to the annotation service.
RequestWrapper will be used for all future request types.
A System is the base element.

# Interfaces

Annotator defines the methods required annotating.
CachingLoader keeps a cache of loaded annotators, updates the cache on request, and returns a copy of the cache on request.

# Type aliases

GeoData is the main struct for the geo metadata, which holds pointers to the Geolocation data and the IP/ASN data.