| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- -- 拦截器
- local M = {}
- M.module = fw_subscribe
- --[[
- FUNCTION: 增加订阅
- PARAM
- express : 规则
- filepath : LUA脚本
- --]]
- function M.add(express,filepath)
- M.module.add(express,filepath)
- end
- --[[
- FUNCTION: 是否存在订阅规则
- PARAM
- express : 规则
- RRETURN
- `bool`
- --]]
- function M.exist(express)
- return M.module.exist(express)
- end
- --[[
- FUNCTION: 移除订阅规则
- PARAM
- express : 规则
- RRETURN
- `bool`
- --]]
- function M.remove(express)
- return M.module.remove(express)
- end
- --[[
- FUNCTION: 清空订阅
- --]]
- function M.clear(express)
- return M.module.clear(express)
- end
- return M
|