Close #159: Add the ability to hide the hostname of a service

This commit is contained in:
TwinProduction
2021-09-02 22:26:08 -04:00
committed by Chris
parent becc17202b
commit 9c99cc522d
7 changed files with 33 additions and 7 deletions

13
core/ui/ui.go Normal file
View File

@ -0,0 +1,13 @@
package ui
// Config is the UI configuration for services
type Config struct {
HideHostname bool `yaml:"hide-hostname"` // Whether to hide the hostname in the Result
}
// GetDefaultConfig retrieves the default UI configuration
func GetDefaultConfig() *Config {
return &Config{
HideHostname: false,
}
}