While not completely necessary, I rewrote the config module. This will make for a smoother addition of influx2.
It now functions from a more global scope and is initialized during app startup.
This has a few benefits.
Config options are a lot more manageable and easily expanded. Still currently using env variables but now could easily be loaded from a settings file.
Config data is no longer stored in memory. The config settings are always accessed dynamically.
(It was bothering me to see full configs in clear text while debugging.)
Cleaner config requests.
Downsides, The config request lines are a bit longer.
While not completely necessary, I rewrote the config module. This will make for a smoother addition of influx2.
It now functions from a more global scope and is initialized during app startup. This has a few benefits.
Downsides, The config request lines are a bit longer.