You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
242 B
14 lines
242 B
package config
|
|
|
|
type Host struct {
|
|
Name string `yaml:"name"`
|
|
Address string `yaml:"address"`
|
|
Checks []Check `yaml:"checks"`
|
|
}
|
|
|
|
func (hst *Host) NameOrAddress() string {
|
|
if hst.Name == "" {
|
|
return hst.Address
|
|
}
|
|
return hst.Name
|
|
}
|