mirror of
https://github.com/JustKato/drive-health.git
synced 2026-04-30 01:42:29 +03:00
Implemented the hardware service
+ Started working on web interface
This commit is contained in:
19
lib/config/config.go
Normal file
19
lib/config/config.go
Normal 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,
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user