subscribe.lua 666 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. -- 拦截器
  2. local M = {}
  3. M.module = fw_subscribe
  4. --[[
  5. FUNCTION: 增加订阅
  6. PARAM
  7. express : 规则
  8. filepath : LUA脚本
  9. --]]
  10. function M.add(express,filepath)
  11. M.module.add(express,filepath)
  12. end
  13. --[[
  14. FUNCTION: 是否存在订阅规则
  15. PARAM
  16. express : 规则
  17. RRETURN
  18. `bool`
  19. --]]
  20. function M.exist(express)
  21. return M.module.exist(express)
  22. end
  23. --[[
  24. FUNCTION: 移除订阅规则
  25. PARAM
  26. express : 规则
  27. RRETURN
  28. `bool`
  29. --]]
  30. function M.remove(express)
  31. return M.module.remove(express)
  32. end
  33. --[[
  34. FUNCTION: 清空订阅
  35. --]]
  36. function M.clear(express)
  37. return M.module.clear(express)
  38. end
  39. return M