mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-04 07:40:26 +08:00
增加注释
This commit is contained in:
@@ -7,18 +7,18 @@ import (
|
||||
)
|
||||
|
||||
type ActionInterface interface {
|
||||
// 初始化
|
||||
// Init 初始化
|
||||
Init(config *firewallconfigs.FirewallActionConfig) error
|
||||
|
||||
// 添加
|
||||
// AddItem 添加
|
||||
AddItem(listType IPListType, item *pb.IPItem) error
|
||||
|
||||
// 删除
|
||||
// DeleteItem 删除
|
||||
DeleteItem(listType IPListType, item *pb.IPItem) error
|
||||
|
||||
// 关闭
|
||||
// Close 关闭
|
||||
Close() error
|
||||
|
||||
// 处理HTTP请求
|
||||
// DoHTTP 处理HTTP请求
|
||||
DoHTTP(req *http.Request, resp http.ResponseWriter) (goNext bool, err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user