iplook

package
v0.0.0-...-406c194 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAppcode = "0284502b79de40bf861bbfde83a1c70e"

Variables

View Source
var ApiUrl = "http://cz88.rtbasia.com/search"
View Source
var Appcode = DefaultAppcode
View Source
var Debug = true

Functions

func GetIpGeoString

func GetIpGeoString(ip string) string

func ReplaceIpGeoString

func ReplaceIpGeoString(src string, ip string) string

Types

type IpAddress

type IpAddress struct {
	Province string `json:"province"`
	City     string `json:"city"`
	Isp      string `json:"isp"`
	Expire   int64  `json:"expire"`
}

func FetchAliyunIpData

func FetchAliyunIpData(ip string) (*IpAddress, error)

func LookIpAddress

func LookIpAddress(ip string) (*IpAddress, error)

type IpCache

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

type IpResult

type IpResult struct {
	Code   int       `json:"code"`
	Data   IpAddress `json:"data"`
	Errors string    `json:"errors"`
}

Jump to

Keyboard shortcuts

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