Documentation ¶
Index ¶
- Constants
- func Ip2long(IpStr string) (int64, error)
- func IpInt642String(n int64) string
- func IpLong2String(n int64) string
- func IpString2Int64(IpStr string) (int64, error)
- func WriteIntLong(b []byte, offset int, v int64)
- type DateBlock
- type HeaderBlock
- type IndexBlock
- type IpInfo
- type Maker
- type Metadata
- type QQwry
Constants ¶
View Source
const ( INDEX_LEN = 7 REDIRECT_MODE_1 = 0x01 REDIRECT_MODE_2 = 0x02 )
Variables ¶
This section is empty.
Functions ¶
func IpInt642String ¶
func IpLong2String ¶
func IpString2Int64 ¶
func WriteIntLong ¶
Types ¶
type HeaderBlock ¶
type HeaderBlock struct {
// contains filtered or unexported fields
}
func (*HeaderBlock) Bytes ¶
func (db *HeaderBlock) Bytes() []byte
type IndexBlock ¶
type IndexBlock struct {
// contains filtered or unexported fields
}
type Metadata ¶
type Metadata struct { StartIP string EndIP string Country string Province string City string Isp string }
func (*Metadata) RegionString ¶
Click to show internal directories.
Click to hide internal directories.