Implements unique keys and getters for datasource types

This commit is contained in:
Simone Mainardi 2021-01-06 14:50:55 +01:00
parent 7ab4d846e8
commit df7ac9429c
4 changed files with 69 additions and 4 deletions

View file

@ -0,0 +1,19 @@
--
-- (C) 2021 - ntop.org
--
-- ##############################################
-- Every datasource must be keyed using one of the following keys
-- NOTE: integer IDs must be unique
local datasource_keys = {
-- Keys for interface datasources coded in datasources/interface, datasources/host, etc
interface_packet_distro = 0,
}
-- ##############################################
return datasource_keys
-- ##############################################