mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
make an OutputModule interface and remove output from modules that don't implement it
This commit is contained in:
@@ -3,7 +3,6 @@ package module
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"net"
|
||||
"time"
|
||||
@@ -105,10 +104,6 @@ func (pc *PSNClient) Start(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
func (pc *PSNClient) Output(ctx context.Context, payload any) error {
|
||||
return fmt.Errorf("psn.client output is not implemented")
|
||||
}
|
||||
|
||||
func (pc *PSNClient) Stop() {
|
||||
pc.cancel()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user