v4

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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"` // 国家或地区
	Area    string `json:"area,omitempty"`    // 区域
}

Result 返回

Jump to

Keyboard shortcuts

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