Documentation
¶
Index ¶
Constants ¶
View Source
const (
IndexBlockLength = 12
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IP2Region ¶
type IP2Region struct {
// contains filtered or unexported fields
}
func NewIP2Region ¶
type IP2RegionLibrary ¶
type IP2RegionLibrary struct {
// contains filtered or unexported fields
}
func (*IP2RegionLibrary) Close ¶
func (this *IP2RegionLibrary) Close()
func (*IP2RegionLibrary) Load ¶
func (this *IP2RegionLibrary) Load(dbPath string) error
type IpInfo ¶
type LibraryInterface ¶
type LibraryInterface interface { // 加载数据库文件 Load(dbPath string) error // 查询IP Lookup(ip string) (*Result, error) // 关闭数据库文件 Close() }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) Load ¶
func (this *Manager) Load() (LibraryInterface, error)
Click to show internal directories.
Click to hide internal directories.