Documentation ¶
Index ¶
Constants ¶
View Source
const (
DB_URL = "https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoServer ¶
type GeoServer struct {
// contains filtered or unexported fields
}
GeoServer is a server for IP geolocation information
func NewServer ¶
NewServer constructs a new GeoServer using the (optional) uncompressed dbFile. If dbFile is "", then this will fetch the latest GeoLite2-City database from MaxMind's website.
Click to show internal directories.
Click to hide internal directories.