From 30e95cd41fc26cc2cbef658c47c690eb5e388b04 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 20 May 2026 14:18:26 +0300 Subject: Extract app wiring from main.go into internal/app package (9a) Move all dependency wiring, background worker startup, server lifecycle (Wire, StartBackgroundWorkers, RunServer, RunWithSignal, BuildLogger) into internal/app so cmd/player/main.go becomes thin: parse flags, load config, delegate to app.RunWithSignal. Updated main_test.go to call app.Wire and app.StartBackgroundWorkers directly. Co-Authored-By: Claude Opus 4.7 --- player-server/internal/api/handlers_playback_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'player-server/internal/api/handlers_playback_test.go') diff --git a/player-server/internal/api/handlers_playback_test.go b/player-server/internal/api/handlers_playback_test.go index fcf0f80..bcd84d1 100644 --- a/player-server/internal/api/handlers_playback_test.go +++ b/player-server/internal/api/handlers_playback_test.go @@ -35,8 +35,10 @@ func newPlaybackTestServer(t *testing.T, store repository.Store, sm auth.Session SessionManager: sm, Config: &internal.Config{}, Services: ServerServices{ - Auth: authSvc, - PlaybackHints: hintSvc, + Media: MediaServices{ + PlaybackHints: hintSvc, + }, + Auth: authSvc, }, StaticFS: fs, MediaStreamer: service.NewMediaStreamer(nil, ""), -- cgit v1.2.3