2024-01-03 07:25:17 +00:00
|
|
|
import Influx from "./influx/influx";
|
2024-01-01 03:45:00 +00:00
|
|
|
import Scanner from "./scanner/scanner";
|
|
|
|
import ServerManager from "./server/serverManager";
|
2024-01-01 17:04:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The server manager instance.
|
|
|
|
*/
|
2024-01-01 03:45:00 +00:00
|
|
|
export const serverManager = new ServerManager();
|
2024-01-01 17:04:19 +00:00
|
|
|
|
2024-01-01 19:43:19 +00:00
|
|
|
/**
|
2024-01-03 07:25:17 +00:00
|
|
|
* The influx database instance.
|
2024-01-01 19:43:19 +00:00
|
|
|
*/
|
2024-01-03 07:25:17 +00:00
|
|
|
export const influx = new Influx();
|
2024-01-01 19:43:19 +00:00
|
|
|
|
2024-01-01 22:16:13 +00:00
|
|
|
(async () => {
|
|
|
|
await serverManager.init();
|
|
|
|
|
|
|
|
// The scanner is responsible for scanning all servers
|
|
|
|
new Scanner();
|
|
|
|
})();
|