mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
add: ipgeo
This commit is contained in:
13
ipgeo/ipgeo.go
Normal file
13
ipgeo/ipgeo.go
Normal 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)
|
||||
Reference in New Issue
Block a user