Documentation
¶
Index ¶
- Constants
- Variables
- type DB
- func (db *DB) Close() error
- func (db *DB) GetAll(ipaddress string) (*Record, error)
- func (db *DB) GetAreaCode(ipaddress string) (*Record, error)
- func (db *DB) GetCity(ipaddress string) (*Record, error)
- func (db *DB) GetCountryLong(ipaddress string) (*Record, error)
- func (db *DB) GetCountryShort(ipaddress string) (*Record, error)
- func (db *DB) GetDomain(ipaddress string) (*Record, error)
- func (db *DB) GetElevation(ipaddress string) (*Record, error)
- func (db *DB) GetIDDCode(ipaddress string) (*Record, error)
- func (db *DB) GetISP(ipaddress string) (*Record, error)
- func (db *DB) GetLatitude(ipaddress string) (*Record, error)
- func (db *DB) GetLongitude(ipaddress string) (*Record, error)
- func (db *DB) GetMCC(ipaddress string) (*Record, error)
- func (db *DB) GetMNC(ipaddress string) (*Record, error)
- func (db *DB) GetMobileBrand(ipaddress string) (*Record, error)
- func (db *DB) GetNetSpeed(ipaddress string) (*Record, error)
- func (db *DB) GetRegion(ipaddress string) (*Record, error)
- func (db *DB) GetTimeZone(ipaddress string) (*Record, error)
- func (db *DB) GetUsageType(ipaddress string) (*Record, error)
- func (db *DB) GetWeatherStationCode(ipaddress string) (*Record, error)
- func (db *DB) GetWeatherStationName(ipaddress string) (*Record, error)
- func (db *DB) GetZipCode(ipaddress string) (*Record, error)
- type Record
Constants ¶
View Source
const (
ApiVersion string = "8.0.3"
)
Variables ¶
View Source
var (
ErrInvalidAddress = errors.New("Invalid IP address.")
)
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) GetCountryLong ¶
get country name
func (*DB) GetCountryShort ¶
get country code
func (*DB) GetElevation ¶
get elevation
func (*DB) GetLongitude ¶
get longitude
func (*DB) GetMobileBrand ¶
get mobile carrier brand
func (*DB) GetUsageType ¶
get usage type
func (*DB) GetWeatherStationCode ¶
get weather station code
func (*DB) GetWeatherStationName ¶
get weather station name
type Record ¶
type Record struct { CountryShort string CountryLong string Region string City string Isp string Latitude float32 Longitude float32 Domain string Zipcode string TimeZone string NetSpeed string IddCode string Areacode string WeatherStationCode string WeatherStationName string Mcc string Mnc string MobileBrand string Elevation float32 UsageType string }
Click to show internal directories.
Click to hide internal directories.