Documentation ¶
Overview ¶
Package sypexgeo to access data from Sypex Geo IP database files, accepts only SypexGeo 2.2 databases
Index ¶
- type City
- type Country
- type Region
- type Result
- type SxGEO
- func (s *SxGEO) City(IP string) (City, error)
- func (s *SxGEO) Country(IP string) (Country, error)
- func (s *SxGEO) GetCity(IP string) (map[string]interface{}, error)
- func (s *SxGEO) GetCityFull(IP string) (map[string]interface{}, error)
- func (s *SxGEO) GetCountry(IP string) (string, error)
- func (s *SxGEO) GetCountryID(IP string) (int, error)
- func (s *SxGEO) Info(IP string) (Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SxGEO ¶
SxGEO main object
func (*SxGEO) GetCityFull ¶
GetCityFull get full info by IP (with regions and countries data)
func (*SxGEO) GetCountry ¶
GetCountry return string country iso-code, like `RU`, `UA` etc.
func (*SxGEO) GetCountryID ¶
GetCountryID return integer country identifier
Click to show internal directories.
Click to hide internal directories.