Documentation ¶
Overview ¶
Package geoip provides an automatically updating MaxMind GeoIP2 database provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewGeoLite2CityProvider ¶
func NewGeoLite2CityProvider(ctx context.Context, accountID int, licenseKey string, directory string) (*Provider, error)
NewGeoLite2CityProvider returns a new GeoIP2 database provider for the GeoLite2-City database. The database will be stored in the given directory (which should exist) and refreshed every 7 days.
Click to show internal directories.
Click to hide internal directories.