Versions in this module Expand all Collapse all v0 v0.6.2 Jan 13, 2019 Changes in this version + const MaxmindPrefix + var BucketName = "downloader-" + os.Getenv("GCLOUD_PROJECT") + var CurrentGeoDataset *parser.GeoDataset = nil + var GeoLite2Regex = regexp.MustCompile(`Maxmind/\d{4}/\d{2}/\d{2}/\d{8}T\d{6}Z-GeoLite2-City-CSV\.zip`) + func Annotate(w http.ResponseWriter, r *http.Request) + func BatchAnnotate(w http.ResponseWriter, r *http.Request) + func BatchValidateAndParse(source io.Reader) ([]annotation.RequestData, error) + func ConvertIPNodeToGeoData(ipNode parser.IPNode, locationNodes []parser.LocationNode) *annotation.GeoData + func DetermineFilenameOfLatestGeolite2File() (string, error) + func GetMetadataForSingleIP(request *annotation.RequestData) *annotation.GeoData + func LoadLatestGeolite2File() (*parser.GeoDataset, error) + func PopulateLatestData() + func SetupHandlers() + func ValidateAndParse(r *http.Request) (*annotation.RequestData, error)