navidrome/core/wire_providers.go
Deluan 07d36ca984 use mock for Agents
Signed-off-by: Deluan <deluan@navidrome.org>
2025-03-30 13:43:55 -04:00

27 lines
634 B
Go

package core
import (
"github.com/google/wire"
"github.com/navidrome/navidrome/core/agents"
"github.com/navidrome/navidrome/core/extdata"
"github.com/navidrome/navidrome/core/ffmpeg"
"github.com/navidrome/navidrome/core/metrics"
"github.com/navidrome/navidrome/core/playback"
"github.com/navidrome/navidrome/core/scrobbler"
)
var Set = wire.NewSet(
NewMediaStreamer,
GetTranscodingCache,
NewArchiver,
NewPlayers,
NewShare,
NewPlaylists,
agents.GetAgents,
extdata.NewProvider,
wire.Bind(new(extdata.Agents), new(*agents.Agents)),
ffmpeg.New,
scrobbler.GetPlayTracker,
playback.GetInstance,
metrics.GetInstance,
)