add: ipgeo

This commit is contained in:
zhshch2002
2022-05-12 21:53:25 +08:00
parent b6f226c400
commit 4b2a34aeaa

13
ipgeo/ipgeo.go Normal file
View File

@@ -0,0 +1,13 @@
package ipgeo
type IPGeoData struct {
Asnumber string `json:"asnumber"`
Country string `json:"country"`
Prov string `json:"prov"`
City string `json:"city"`
District string `json:"district"`
Owner string `json:"owner"`
Isp string `json:"isp"`
}
type Source = func(ip string) (IPGeoData, error)