Add option to control repair behavior

This commit is contained in:
eikendev 2022-12-04 23:41:22 +01:00
parent 38b615a05d
commit 77765e77a9
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
9 changed files with 49 additions and 22 deletions

View file

@ -39,6 +39,12 @@ type Alertmanager struct {
AnnotationMessage string `default:"message"`
}
// RepairBehavior holds information on how repair applications.
type RepairBehavior struct {
ResetRoomName bool `default:"true"`
ResetRoomTopic bool `default:"true"`
}
// Configuration holds values that can be configured by the user.
type Configuration struct {
Debug bool `default:"false"`
@ -60,9 +66,10 @@ type Configuration struct {
Security struct {
CheckHIBP bool `default:"false"`
}
Crypto CryptoConfig
Formatting Formatting
Alertmanager Alertmanager
Crypto CryptoConfig
Formatting Formatting
Alertmanager Alertmanager
RepairBehavior RepairBehavior
}
func configFiles() []string {