Documentation ¶
Overview ¶
Package ipService 读取第三方的ip地址信息
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpInfo ¶
type IpInfo struct { Ip string `json:"ip"` // ip Country string `json:"country"` // 国家 Province string `json:"province"` // 省份 City string `json:"city"` // 城市 Isp string `json:"isp"` // 运营商 Score string `json:"score"` // 真人概率 }
func GetIpInfoCZ ¶
GetIpInfoCZ 获取ip信息,数据来自纯真 *
- 数据来源网址 https://www.cz88.net/
- @param ip 要查询的ip
- @return IpInfo,error
func GetIpInfoCip ¶
GetIpInfoCip 获取ip信息,数据来自ip138 *
- 数据来源网址 http://www.cip.cc/
- @param ip 要查询的ip
- @return IpInfo,error
Click to show internal directories.
Click to hide internal directories.