Rootless Run

+ Debug Tools
* ReadME
* Optimized config, now it's cached
* ReWrote and optimized logic.go
* rewrote and optimized
+ Styling improvements
This commit is contained in:
2024-01-22 00:28:07 +02:00
parent d7e856aca2
commit 1d970aa6ba
9 changed files with 333 additions and 88 deletions

View File

@@ -20,8 +20,15 @@ type DHConfig struct {
DebugMode bool `json:"debugMode"`
}
func GetConfiguration() DHConfig {
config := DHConfig{
var config *DHConfig = nil
func GetConfiguration() *DHConfig {
if config != nil {
return config
}
config = &DHConfig{
DiskFetchFrequency: 5,
CleanupServiceFrequency: 3600,
MaxHistoryAge: 2592000,