Revamp module structure

- Add shutdown mechanics to module
- Adapt dbmodule to new mechanics
This commit is contained in:
Daniel 2019-08-09 16:45:43 +02:00
parent 090669728d
commit 402429cd70
11 changed files with 108 additions and 37 deletions

View file

@ -23,7 +23,7 @@ var (
databasesStructure *utils.DirStructure
)
// Initialize initialized the database at the specified location. Supply either a path or dir structure.
// Initialize initializes the database at the specified location. Supply either a path or dir structure.
func Initialize(dirPath string, dirStructureRoot *utils.DirStructure) error {
if initialized.SetToIf(false, true) {