mirror of
https://github.com/pushbits/server.git
synced 2025-06-01 18:22:02 +02:00
adopt to review
change formatting options to separate struct and clean up
This commit is contained in:
parent
fe1cbdf79e
commit
2ff9f5972a
6 changed files with 22 additions and 20 deletions
|
@ -18,6 +18,11 @@ type CryptoConfig struct {
|
|||
Argon2 Argon2Config
|
||||
}
|
||||
|
||||
// Formatting holds additional parameters used for formatting messages
|
||||
type Formatting struct {
|
||||
ColoredTitle bool `default:"false"`
|
||||
}
|
||||
|
||||
// Configuration holds values that can be configured by the user.
|
||||
type Configuration struct {
|
||||
Debug bool `default:"false"`
|
||||
|
@ -42,8 +47,8 @@ type Configuration struct {
|
|||
Security struct {
|
||||
CheckHIBP bool `default:"false"`
|
||||
}
|
||||
Crypto CryptoConfig
|
||||
Message map[string]interface{}
|
||||
Crypto CryptoConfig
|
||||
Formatting Formatting
|
||||
}
|
||||
|
||||
func configFiles() []string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue