Close #159: Add the ability to hide the hostname of a service
This commit is contained in:
13
core/ui/ui.go
Normal file
13
core/ui/ui.go
Normal 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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user