refactor triggger/action registration

This commit is contained in:
2023-09-30 18:49:12 +02:00
parent 64bce5827c
commit 0354d86796
7 changed files with 57 additions and 33 deletions

View File

@@ -49,7 +49,7 @@ func (t EthernetDisconnect) Listen() {
actions.Fire(t.action)
}
func NewEthernetDisconnect(config internal.KillSwitchConfig) (EthernetDisconnect, error) {
func (e EthernetDisconnect) Create(config internal.KillSwitchConfig) (Trigger, error) {
result := EthernetDisconnect{
WaitTillConnected: true,
}