mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 15:33:17 +01:00
docs: Add missing description for ui pkg ValidateAndSetDefaults
This commit is contained in:
parent
dc9cddfd77
commit
7cf2b427c9
@ -29,6 +29,7 @@ var (
|
||||
ErrInvalidBadgeResponseTimeConfig = errors.New("invalid response time badge configuration: expected parameter 'response-time' to have 5 ascending numerical values")
|
||||
)
|
||||
|
||||
// ValidateAndSetDefaults validates the UI configuration and sets the default values
|
||||
func (config *Config) ValidateAndSetDefaults() error {
|
||||
if config.Badge != nil {
|
||||
if len(config.Badge.ResponseTime.Thresholds) != 5 {
|
||||
|
Loading…
Reference in New Issue
Block a user