Documentation ¶ Overview ¶ Package geoip implement ipdb. Index ¶ Constants func InitLog() type Geoip func (g *Geoip) Geo(ip string) (*ipdb.IPdbRecord, error) func (g *Geoip) Init(dataDir string, config map[string]string) func (g *Geoip) SearchIsp(ip string) string Constants ¶ View Source const INVALIDIP = "Invalid IP address" Variables ¶ This section is empty. Functions ¶ func InitLog ¶ func InitLog() Types ¶ type Geoip ¶ type Geoip struct { // contains filtered or unexported fields } func (*Geoip) Geo ¶ func (g *Geoip) Geo(ip string) (*ipdb.IPdbRecord, error) func (*Geoip) Init ¶ func (g *Geoip) Init(dataDir string, config map[string]string) func (*Geoip) SearchIsp ¶ func (g *Geoip) SearchIsp(ip string) string Source Files ¶ View all Source files geolite2.go Click to show internal directories. Click to hide internal directories.