Documentation ¶
Index ¶
- Constants
- type Ip2Region
- func (this *Ip2Region) BinarySearch(ipStr string) (ipInfo IpInfo, err error)
- func (this *Ip2Region) BtreeSearch(ipStr string) (ipInfo IpInfo, err error)
- func (this *Ip2Region) Close()
- func (this *Ip2Region) InitBinarySearch() (err error)
- func (this *Ip2Region) InitBtreeSearch() (err error)
- func (this *Ip2Region) InitMemorySearch() (err error)
- func (this *Ip2Region) MemorySearch(ipStr string) (ipInfo IpInfo, err error)
- func (this *Ip2Region) Reload(newPath ...string) error
- func (this *Ip2Region) ResetBtreeSearch()
- func (this *Ip2Region) ResetMemoryAndBinarySearch()
- type IpInfo
Constants ¶
View Source
const ( INDEX_BLOCK_LENGTH = 12 TOTAL_HEADER_LENGTH = 8192 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ip2Region ¶
type Ip2Region struct {
// contains filtered or unexported fields
}
func (*Ip2Region) BinarySearch ¶
func (*Ip2Region) BtreeSearch ¶
func (*Ip2Region) InitBinarySearch ¶ added in v1.2.7
func (*Ip2Region) InitBtreeSearch ¶ added in v1.2.7
func (*Ip2Region) InitMemorySearch ¶ added in v1.2.7
func (*Ip2Region) MemorySearch ¶
func (*Ip2Region) ResetBtreeSearch ¶ added in v1.2.7
func (this *Ip2Region) ResetBtreeSearch()
func (*Ip2Region) ResetMemoryAndBinarySearch ¶ added in v1.2.7
func (this *Ip2Region) ResetMemoryAndBinarySearch()
Click to show internal directories.
Click to hide internal directories.