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:
parent
dc9cddfd77
commit
7cf2b427c9
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue