summaryrefslogtreecommitdiff
path: root/web/share.html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-30 11:48:05 +0300
committerPaul Buetow <paul@buetow.org>2026-04-30 11:48:05 +0300
commit38e318e71d50e4340ddbf1ae63b3d85e958b4644 (patch)
tree9b858ea44c139d98049780c19b89d5cf469ce161 /web/share.html
parentaf29461e3a21de9b4aafbc741c5b8b0af36d1ced (diff)
fa: wire GCWorker startup and shutdown in cmd/mediaplayer/main.go
- Refactor main into run(args) for testability and clean error propagation. - Create slog.Logger from cfg.LogLevel using TextHandler. - Instantiate service.NewGCWorker with store, clock, cfg.MediaRoot, and time.Duration(cfg.GCIntervalMinutes)*time.Minute. - Start GCWorker after construction and defer Stop for graceful shutdown. - Add cmd/mediaplayer/main_test.go as an integration smoke test wiring the GCWorker against a real SQLite store.
Diffstat (limited to 'web/share.html')
0 files changed, 0 insertions, 0 deletions