add EthernetDisconnect trigger

This commit is contained in:
2023-08-16 00:13:19 +02:00
parent b7bab8f726
commit c2402e122f
2 changed files with 107 additions and 0 deletions

View File

@@ -15,11 +15,16 @@ func NewTrigger(config internal.KillSwitchConfig) (Trigger, error) {
return NewTimeOut(config)
}
if config.Type == "EthernetDisconnect" {
return NewEthernetDisconnect(config)
}
return nil, fmt.Errorf("Error parsing config: Trigger with type %s does not exists", config.Type)
}
func GetDocumenters() []internal.Documenter {
return []internal.Documenter{
TimeOut{},
EthernetDisconnect{},
}
}