diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-09 22:15:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-09 22:15:33 +0300 |
| commit | adec17e01da2539d1b1826148e77993d5e3271b5 (patch) | |
| tree | ce0ed20e695e4cea7eb41928919a1ff713f4426e /cmd | |
| parent | d4d79e17433858d27846774274e38d907621b184 (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.go | 2 |
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 |
