Documentation ¶
Overview ¶
@Title @Description $ @Author 55 @Date 2022/5/12
@Title @Description $ @Author 55 @Date 2022/5/16
@Title @Description $ @Author 55 @Date 2022/5/12
@Title @Description $ @Author 55 @Date 2022/5/15
@Title @Description $ @Author 55 @Date 2022/6/23
@Title @Description $ @Author 55 @Date 2022/5/12
@Title @Description $ @Author 55 @Date 2022/6/23
@Title @Description $ @Author 55 @Date 2022/5/15
@Title @Description $ @Author 55 @Date 2022/5/12
@Title @Description $ @Author 55 @Date 2022/5/16
Index ¶
Constants ¶
View Source
const ( InfoTypeFail = 0 // 获取失败 InfoTypeNotRegion = 1 // 无省份信息 InfoTypeNotCity = 2 // 无城市信息 InfoTypeSuccess = 3 // 获取成功 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IpInfo ¶
type IpInfo struct { Status string `json:"status,omitempty"` Type string `json:"type,omitempty"` Country string `json:"country,omitempty"` Region string `json:"region,omitempty"` City string `json:"city,omitempty"` Isp string `json:"isp,omitempty"` Query string `json:"query,omitempty"` Param string `json:"param,omitempty"` }
type UserAgentInfo ¶
func (*UserAgentInfo) CanFree ¶ added in v1.1.1
func (s *UserAgentInfo) CanFree() bool
func (*UserAgentInfo) Init ¶ added in v1.1.1
func (s *UserAgentInfo) Init(cfg interface{}) bool
func (*UserAgentInfo) IpInfo ¶
func (s *UserAgentInfo) IpInfo(ip string) (info *IpInfo)
ip.useragentinfo.com 直接调用即可【没有频率限制】
Click to show internal directories.
Click to hide internal directories.