mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
6ed93d4b82
* Add clarifications in comments * #191: Rename Service to Endpoint
18 lines
560 B
Go
18 lines
560 B
Go
package ui
|
|
|
|
// Config is the UI configuration for core.Endpoint
|
|
type Config struct {
|
|
// HideHostname whether to hide the hostname in the Result
|
|
HideHostname bool `yaml:"hide-hostname"`
|
|
// DontResolveFailedConditions whether to resolve failed conditions in the Result for display in the UI
|
|
DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"`
|
|
}
|
|
|
|
// GetDefaultConfig retrieves the default UI configuration
|
|
func GetDefaultConfig() *Config {
|
|
return &Config{
|
|
HideHostname: false,
|
|
DontResolveFailedConditions: false,
|
|
}
|
|
}
|