Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultConfigFile = "config.yaml"
)
Variables ¶
View Source
var ( ErrorConfigNotFound = fmt.Errorf("the config at '%s' was not found", DefaultConfigFile) DefaultConfig = Config{ NutServers: []NutServer{ { Name: "NUT Server 1", Host: "192.168.1.13", Port: entity.DefaultNUTServerPort, Username: "", Password: "", Targets: []TargetServer{ { Name: "NAS 1", MAC: "00:00:00:00:00:00", Broadcast: "192.168.1.255", Port: entity.DefaultWoLPort, Interval: "15m", Rules: []string{ "80percentOn.rego", }, }, }, }, }, } )
Functions ¶
func CreateDefaultConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.