qqwry

package
v0.0.0-...-aae289c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INDEX_LENGTH    = 7
	REDIRECT_MODE_1 = 0x01
	REDIRECT_MODE_2 = 0x02
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QQwry

type QQwry struct {
	// contains filtered or unexported fields
}

func NewQQwry

func NewQQwry(datfile string) *QQwry

func (*QQwry) Close

func (wry *QQwry) Close()

func (*QQwry) Search

func (wry *QQwry) Search(ipstr string) (res Result)

type QQwrySearch

type QQwrySearch struct {
	// contains filtered or unexported fields
}

type Result

type Result struct {
	IP      string `json:"ip"`
	Begin   string `json:"begin"`
	End     string `json:"end"`
	Country string `json:"country"`
	Area    string `json:"area"`
}

func (*Result) String

func (res *Result) String() string

Jump to

Keyboard shortcuts

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