Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAreaID ¶ added in v0.1.19
Types ¶
type GeoInfo ¶
type GeoInfo struct { Latitude float64 Longitude float64 IP string Geo string Continent string Country string Province string City string }
GeoInfo represents the geo information
func DefaultGeoInfo ¶
DefaultGeoInfo creates a default GeoInfo object with the specified IP and default area
type Region ¶
Region represents a geo region interface
func InitGeoLite ¶
InitGeoLite initializes a new GeoLiteRegion using the given database path
Click to show internal directories.
Click to hide internal directories.