mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Initial work to implement user script templates
This commit is contained in:
parent
ee8ffaca7d
commit
80ae202ad1
8 changed files with 420 additions and 8 deletions
|
|
@ -0,0 +1,36 @@
|
|||
--
|
||||
-- (C) 2013-21 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
-- Import the classes library.
|
||||
local classes = require "classes"
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local user_script_template = classes.class()
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function user_script_template:init()
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function user_script_template:parseConfig(script, conf)
|
||||
return true, conf
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function user_script_template:describeConfig(script, hooks_conf)
|
||||
return ''
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
return user_script_template
|
||||
|
||||
-- ##############################################
|
||||
Loading…
Add table
Add a link
Reference in a new issue