63 Star 487 Fork 143

samwaf/SamWaf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
waf_engine.go 288 Bytes
一键复制 编辑 原始数据 按行查看 历史
samwaf 提交于 2022-11-01 18:01 +08:00 . 整体业务接口重新梳理封装
package api
import (
"SamWaf/global"
"SamWaf/model/common/response"
"github.com/gin-gonic/gin"
)
type WafEngineApi struct {
}
func (w *WafEngineApi) ResetWaf(c *gin.Context) {
//重启WAF引擎
global.GWAF_CHAN_ENGINE <- 1
response.OkWithMessage("重启指令发起成功", c)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/samwaf/SamWaf.git
[email protected]:samwaf/SamWaf.git
samwaf
SamWaf
SamWaf
main

搜索帮助