v6

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Un7z

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

Types

type Pointer

type Pointer struct {
	Offset   uint32
	ItemLen  uint32
	IndexLen uint32
}

func (*Pointer) Find

func (q *Pointer) Find(ip string) (res Result)

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

func (*Pointer) InitIPV4Data

func (q *Pointer) InitIPV4Data() int64

InitIPV4Data 加载

func (*Pointer) OnlineDownload

func (q *Pointer) OnlineDownload() (err error)

OnlineDownload 在线下载

type Result

type Result 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"`      // 运营商
}

Jump to

Keyboard shortcuts

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