1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-14 11:58:04 +00:00

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") 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 { func (config *Config) ValidateAndSetDefaults() error {
if config.Badge != nil { if config.Badge != nil {
if len(config.Badge.ResponseTime.Thresholds) != 5 { if len(config.Badge.ResponseTime.Thresholds) != 5 {