Documentation ¶
Index ¶
- Constants
- func AddASNData(data *ipgeo.IPGeoData) error
- func AddData(c *CityInfo)
- func AddGeo(g *Geo)
- func AddHistory(data *ipgeo.IPGeoData, uid int) error
- func AddIP(data *ipgeo.IPGeoData, uid int) error
- func AddIPScense(data *ipgeo.IPGeoData, scene string) error
- func AddIPWhois(data *ipgeo.IpWhois) error
- func AddIPv6(data *ipgeo.IPGeoData, uid int) error
- func AddRouter(ip string, prefix string, data map[string][]string)
- func AddUsers(ip string) (int, error)
- func CountryCodeToCountryName(country_code string) string
- func FindNeiborHop(ip string) (string, error)
- func GetDB() *gorm.DB
- func GetIATAGeo(ptr string) (*ipgeo.IPGeoData, error)
- func InetAtoN(ip string) int64
- func InetNtoA(ip uint64) string
- func IsChinese(str string) bool
- func ParseIPRange(inet string) (int64, int64)
- func SearchUsers(ip string) (int, error)
- func ShowAllCities() *[]Cache
- func UpdateIP(ip string, prefix int, asnumber string, country string, prov string, ...) error
- func UpdateIPv6(ip string, prefix int, asnumber string, country string, prov string, ...) error
- type Asn
- type Cache
- type Cache_scense
- type Cache_v6
- type CityInfo
- type Geo
- type History_information
- type Hop
- type Iata_code
- type Ip_whois
- type Ipv4_asn
- type Result
- type Router
- type Users
Constants ¶
View Source
const ( Before_Hop_Type = 0 Next_Hop_Type = 1 )
Variables ¶
This section is empty.
Functions ¶
func AddASNData ¶
func AddIPWhois ¶
func FindNeiborHop ¶
func ParseIPRange ¶
func SearchUsers ¶
func ShowAllCities ¶
func ShowAllCities() *[]Cache
Types ¶
type Asn ¶
func SearchASNData ¶
type Cache ¶
type Cache_scense ¶
func SearchIPScense ¶
func SearchIPScense(ip string) (*Cache_scense, error)
type Cache_v6 ¶
type Cache_v6 struct { Id uint Uid uint Ip string Prefix int Asnumber string Country string Prov string City string District string Owner string Isp string }
func SearchIPv6 ¶
type CityInfo ¶
type CityInfo struct { CountryZH string CountryEN string RegionZH string RegionEN string CityZH string CityEN string CenterLocationLat float64 CenterLocationLng float64 BoundsNortheastLat float64 BoundsNortheastLng float64 BoundsSouthwestLat float64 BoundsSouthwestLng float64 }
func GetInfoData ¶
func SearchData ¶
type History_information ¶
type Ip_whois ¶
type Ip_whois struct { Id uint Begin int64 End int64 Netname string Owner string Country_code string }
func SearchIPWhois ¶
type Ipv4_asn ¶
func SearchASNData ¶
Click to show internal directories.
Click to hide internal directories.