mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-24 16:00:24 +08:00
实现IP黑白名单、国家|地区封禁、省份封禁
This commit is contained in:
12
internal/iplibrary/library_interface.go
Normal file
12
internal/iplibrary/library_interface.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package iplibrary
|
||||
|
||||
type LibraryInterface interface {
|
||||
// 加载数据库文件
|
||||
Load(dbPath string) error
|
||||
|
||||
// 查询IP
|
||||
Lookup(ip string) (*Result, error)
|
||||
|
||||
// 关闭数据库文件
|
||||
Close()
|
||||
}
|
||||
Reference in New Issue
Block a user