mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
make an OutputModule interface and remove output from modules that don't implement it
This commit is contained in:
@@ -73,11 +73,6 @@ func (t *TimeTimer) Start(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
func (t *TimeTimer) Output(ctx context.Context, payload any) error {
|
||||
t.timer.Reset(time.Millisecond * time.Duration(t.Duration))
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *TimeTimer) Stop() {
|
||||
t.cancel()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user