package
1.65.4
Repository: https://github.com/untangle/golang-shared.git
Documentation: pkg.go.dev

# Functions

NewLockingGeoIPManager creates a new LockingGeoIPManager, which wraps the db object given.
NewMaxMindGeoIPManager creates a new NewMaxMindGeoIPManager that 'points at' the database given by filename.

# Constants

The full path of the database filename.
the name of the database file we look for in tarballs we download.

# Structs

LockingGeoIPManager is a wrapper object for a GeoIPManager (specifically MaxMindGeoIPManager) that wraps all calls to LookupCountryCodeOfIP and Refresh with an RWLock.
MaxMindGeoIPManager is a GeoIPDB implementation of the geo IP database that uses a MaxMind database.

# Interfaces

GeoIPDB is an interface that GeoIP databases conform to.