mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 01:20:26 +08:00
13 lines
194 B
Go
13 lines
194 B
Go
|
|
package iplibrary
|
||
|
|
|
||
|
|
type LibraryInterface interface {
|
||
|
|
// 加载数据库文件
|
||
|
|
Load(dbPath string) error
|
||
|
|
|
||
|
|
// 查询IP
|
||
|
|
Lookup(ip string) (*Result, error)
|
||
|
|
|
||
|
|
// 关闭数据库文件
|
||
|
|
Close()
|
||
|
|
}
|