Files
soldr-modules/correlator/1.0.0/smodule/main.lua
T
2022-11-22 02:21:28 +03:00

29 lines
684 B
Lua

__api.add_cbs({
-- data = function(src, data)
-- file = function(src, path, name)
-- text = function(src, text, name)
-- msg = function(src, msg, mtype)
-- action = function(src, data, name)
control = function(cmtype, data)
__log.debugf("receive control msg '%s' with payload: %s", cmtype, data)
-- cmtype: "quit"
-- cmtype: "agent_connected"
-- cmtype: "agent_disconnected"
-- cmtype: "update_config"
return true
end,
})
__log.infof("module '%s' was started", __config.ctx.name)
__api.await(-1)
__log.infof("module '%s' was stopped", __config.ctx.name)
return 'success'