Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoIp ¶
type GoIp struct {
// contains filtered or unexported fields
}
func (*GoIp) QueryDbReaderCountryForZhName ¶
查询 IP相关信息,返回IP所属国家中文名称
func (*GoIp) QueryLocationInfoByIp ¶
func (g *GoIp) QueryLocationInfoByIp(ipStr string) (*IP2Locationrecord, error)
IP 相关信息
type IP2Locationrecord ¶
type IP2Locationrecord struct { Country_short string Country_long 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 Addresstype string Category string District string Asn string As string }
Click to show internal directories.
Click to hide internal directories.