add EthernetDisconnect trigger
This commit is contained in:
@@ -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{},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user