ipv6wry

package
v1.0.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnlineDownload

func OnlineDownload()

func Un7z

func Un7z(filePath string) (data []byte, err error)

Types

type Client

type Client struct {
	Offset   uint32
	ItemLen  uint32
	IndexLen uint32
}

func New

func New() *Client

func (*Client) Query

func (c *Client) Query(ipAddress net.IP) (result QueryResult)

Query ip地址查询对应归属地信息

type QueryResult

type QueryResult struct {
	Ip       string `json:"ip,omitempty"`       // ip
	Country  string `json:"country,omitempty"`  // 国家
	Province string `json:"province,omitempty"` // 省份
	City     string `json:"city,omitempty"`     // 城市
	Area     string `json:"area,omitempty"`     // 区域
	Isp      string `json:"isp,omitempty"`      // 运营商
}

QueryResult 返回

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL