Skip to content

Commit

Permalink
feat: 即将支持集群
Browse files Browse the repository at this point in the history
feat: 事务日程调整
feat: 补充插件加载错误日志
feat: 补充插件模板数据文件
fix : 修复插件文件名称错误
fix : 修复插件加载变量错误
  • Loading branch information
tsm committed Aug 8, 2022
1 parent fbe57db commit 4282d65
Show file tree
Hide file tree
Showing 17 changed files with 214 additions and 1,931 deletions.
6 changes: 3 additions & 3 deletions doc/feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@



- [ ] 支持多协议转发
- [ ] 支持多协议转换转发

- [ ] 提供模块测试用例
- [ ] 支持各模块测试用例



Expand All @@ -100,7 +100,7 @@

- [ ] 【插件】支持请求耗时统计

- [ ] 【插件】支持请求告警配置
- [ ] 【插件】支持请求告警通知

- [ ] 【插件】支持权限身份控制

Expand Down
6 changes: 3 additions & 3 deletions plugins/tl_ops_plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ local tl_ops_process_load_plugins_constant = function(name)

local status, constant = pcall(require, "plugins.tl_ops_" .. name .. ".tl_ops_plugin_constant")
if status then
if plugin and type(constant) == 'table' then
if constant and type(constant) == 'table' then
return constant
else
tlog:dbg("tl_ops_process_load_plugins_constant constant err, name=",name,",constant=",constant)
end
else
tlog:dbg("tl_ops_process_load_plugins_constant status err, name=",name,",status=",status)
tlog:dbg("tl_ops_process_load_plugins_constant status err, name=",name,",status=",status,",err=",constant)
end

return nil
Expand All @@ -62,7 +62,7 @@ local tl_ops_process_load_plugins_func = function(name)
tlog:dbg("tl_ops_process_load_plugins_func func err, name=",name,",func=",func)
end
else
tlog:dbg("tl_ops_process_load_plugins_func status err, name=",name,",status=",status)
tlog:dbg("tl_ops_process_load_plugins_func status err, name=",name,",status=",status,",err=",func)
end

return nil
Expand Down
2 changes: 1 addition & 1 deletion plugins/tl_ops_ssl/get_ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-- @email [email protected]

local cache = require("cache.tl_ops_cache_core"):new("tl-ops-ssl");
local tl_ops_constant_ssl = require("plugins.tl_ops_ssl.tl_ops_constant_ssl");
local tl_ops_constant_ssl = require("plugins.tl_ops_ssl.tl_ops_plugin_constant");
local tl_ops_rt = tlops.constant.comm.tl_ops_rt;
local tl_ops_utils_func = tlops.utils
local cjson = require("cjson.safe");
Expand Down
2 changes: 1 addition & 1 deletion plugins/tl_ops_ssl/set_ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

local snowflake = require("lib.snowflake");
local cache = require("cache.tl_ops_cache_core"):new("tl-ops-ssl");
local tl_ops_constant_ssl = require("plugins.tl_ops_ssl.tl_ops_constant_ssl");
local tl_ops_constant_ssl = require("plugins.tl_ops_ssl.tl_ops_plugin_constant");
local tl_ops_rt = tlops.constant.comm.tl_ops_rt;
local tl_ops_utils_func = tlops.utils
local cjson = require("cjson.safe");
Expand Down
2 changes: 1 addition & 1 deletion plugins/tl_ops_ssl/ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-- @author iamtsm
-- @email [email protected]

local constant_ssl = require("plugins.tl_ops_ssl.tl_ops_constant_ssl");
local constant_ssl = require("plugins.tl_ops_ssl.tl_ops_plugin_constant");
local tlog = require("utils.tl_ops_utils_log"):new("tl_ops_plugin_ssl");
local cache_ssl = require("cache.tl_ops_cache_core"):new("tl-ops-ssl");
local shared = tlops.plugin_shared
Expand Down
2 changes: 1 addition & 1 deletion plugins/tl_ops_ssl/sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

local tlog = require("utils.tl_ops_utils_log"):new("tl_ops_plugin_ssl")
local cache = require("cache.tl_ops_cache_core"):new("tl-ops-ssl")
local tl_ops_constant_ssl = require("plugins.tl_ops_ssl.tl_ops_constant_ssl")
local tl_ops_constant_ssl = require("plugins.tl_ops_ssl.tl_ops_plugin_constant")
local tl_ops_rt = tlops.constant.comm.tl_ops_rt
local cjson = require("cjson.safe")
cjson.encode_empty_table_as_object(false)
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion plugins/tl_ops_sync/sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ local sync_fields = require("plugins.tl_ops_sync.sync_fields")
local sync_data = require("plugins.tl_ops_sync.sync_data")
local sync_env = tlops.env.sync
local utils = tlops.utils
local shared = tlops.balance_shared


local _M = {
Expand Down
Loading

0 comments on commit 4282d65

Please sign in to comment.