Documentation ¶
Overview ¶
Package ipdb define the interface for ip location or isp.
Index ¶
Constants ¶
View Source
const ( IPV4Len = 4 FileSeparator = " " )
Variables ¶
View Source
var BitConvTemplate = []string{}/* 256 elements not displayed */
View Source
var IspValid = map[string]string{
"chinanet": "中国电信",
"cmcc": "中国移动",
"unicom": "中国联通",
"tietong": "中国铁通",
"cernet": "教育网",
"cstnet": "科技网",
"drpeng": "鹏博士",
"googlecn": "谷歌中国",
}
Functions ¶
func BuildContryCity ¶
func ParseIPCIDR ¶
Types ¶
type IPdbRecord ¶
type IPdbRecord struct { Country string Region string City string Isp string Latitude float32 Longitude float32 Timezone string Areacode string }
func (*IPdbRecord) CheckData ¶
func (record *IPdbRecord) CheckData() *IPdbRecord
Click to show internal directories.
Click to hide internal directories.