summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-09 22:15:33 +0300
committerPaul Buetow <paul@buetow.org>2026-05-09 22:15:33 +0300
commitadec17e01da2539d1b1826148e77993d5e3271b5 (patch)
treece0ed20e695e4cea7eb41928919a1ff713f4426e /cmd
parentd4d79e17433858d27846774274e38d907621b184 (diff)
Extract SessionManager interface to fix DIP violation
- Introduce auth.SessionManager interface in internal/auth/interfaces.go - Rename concrete struct to sessionManager (unexported) and have it satisfy interface - Update api/service layers to depend on interface, not concrete type - Add MockSessionManager for testing - Update all call sites and tests to use interface
Diffstat (limited to 'cmd')
-rw-r--r--cmd/player/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/player/main.go b/cmd/player/main.go
index cb70464..afc1a5e 100644
--- a/cmd/player/main.go
+++ b/cmd/player/main.go
@@ -38,7 +38,7 @@ func run(args []string) error {
type appDeps struct {
store repository.Store
hasher auth.Hasher
- sm *auth.SessionManager
+ sm auth.SessionManager
cfg *internal.Config
clk clock.Clock
mediaSvc service.MediaService