ip

package module
v0.0.0-...-05c9766 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyseResult

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

type App

type App struct {
	V4Region ip2region.Ip2Region
	V4db     v4.Pointer
	V6db     v6.Pointer
}

func (*App) Analyse

func (app *App) Analyse(item string) AnalyseResult

func (*App) CheckIpv4

func (app *App) CheckIpv4(ips string) bool

CheckIpv4 检查数据是不是IPV4

func (*App) CheckIpv6

func (app *App) CheckIpv6(ips string) bool

CheckIpv6 检测是不是IPV6

type FileData

type FileData struct {
	Data []byte
	Path *os.File
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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