Implemented the hardware service

+ Started working on web interface
This commit is contained in:
2024-01-20 01:27:10 +02:00
parent fbee33bf00
commit 81ca5ddf28
13 changed files with 398 additions and 12 deletions

19
lib/config/config.go Normal file
View File

@@ -0,0 +1,19 @@
package config
type DHConfig struct {
DiskFetchFrequency int `json:"diskFetchFrequency" comment:"How often should a snapshot be taken of the current state of the disks"`
MemoryDumpFrequency int `json:"memoryDumpFrequency" comment:"How often should we save the snapshots from memory to disk"`
MaxHistoryAge int
}
func GetConfiguration() DHConfig {
// TODO: Read from os.environment or simply load the defaults
return DHConfig{
DiskFetchFrequency: 5,
MemoryDumpFrequency: 36,
MaxHistoryAge: 2592000,
}
}