diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-30 11:48:05 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-30 11:48:05 +0300 |
| commit | 38e318e71d50e4340ddbf1ae63b3d85e958b4644 (patch) | |
| tree | 9b858ea44c139d98049780c19b89d5cf469ce161 /web/share.html | |
| parent | af29461e3a21de9b4aafbc741c5b8b0af36d1ced (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
