docs: Add missing description for ui pkg ValidateAndSetDefaults

This commit is contained in:
TwiN 2024-04-09 18:56:33 -04:00
parent dc9cddfd77
commit 7cf2b427c9

View File

@ -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 {