Documentation ¶
Overview ¶
Package mmdb is a Go library for downloading and updating MaxMind GeoLite2 databases.
Functions will download tar archive, extract the database file from it to a provided file name, and save MD5 sum of tar archive in a file in the same directory as the database file. MD5 sum is used for checking if the database is updated on the next function call.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateGeoLite2ASN ¶
UpdateGeoLite2ASN downloads and updates a GeoLite2 ASN database and saves it under filename. MD5 sum of the tar archive is saved in a file in the same directory for update checks.
func UpdateGeoLite2City ¶
UpdateGeoLite2City downloads and updates a GeoLite2 City database and saves it under filename. MD5 sum of the tar archive is saved in a file in the same directory for update checks.
func UpdateGeoLite2Country ¶
UpdateGeoLite2Country downloads and updates a GeoLite2 Country database and saves it under filename. MD5 sum of the tar archive is saved in a file in the same directory for update checks.
Types ¶
This section is empty.