Versions in this module Expand all Collapse all v1 v1.0.0 Feb 25, 2023 Changes in this version + type Repository interface + AddAlbum func(ctx context.Context, albums []*model.Album) (int, error) + AddArtist func(ctx context.Context, artists []*model.Artist) (int, error) + AddTracks func(ctx context.Context, tracks []*model.Track) (int, error) + GetAlbumByLink func(ctx context.Context, link string) (*model.Album, error) + GetAlbumsById func(ctx context.Context, id string) ([]*model.Album, error) + GetArtistByLink func(ctx context.Context, link string) (*model.Artist, error) + GetArtistsById func(ctx context.Context, id string) ([]*model.Artist, error) + GetByLink func(ctx context.Context, link string) (model.Type, any, error) + GetTrackByLink func(ctx context.Context, link string) (*model.Track, error) + GetTracksByIsrc func(ctx context.Context, isrc string) ([]*model.Track, error) + GetTracksByLegacyId func(ctx context.Context, id string) ([]*model.Track, error) + func NewMongoRepository(db *mongo.Database, rec metrics.Recorder, log *logrus.Logger) Repository