Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumArtistRepository ¶
type AlbumArtistRepository interface { GetByID(ctx context.Context, albumArtistID int) (*dbmodel.AlbumArtist, error) GetByName(ctx context.Context, name string) (*dbmodel.AlbumArtist, error) GetAlbumArtists(ctx context.Context, data *dto.GetAlbumArtistsDTO) (dbmodel.AlbumArtistSlice, error) CountAlbumArtists(ctx context.Context, data *dto.GetAlbumArtistsDTO) (int64, error) }
func NewAlbumArtistRepository ¶
func NewAlbumArtistRepository(db sqlExecutor) AlbumArtistRepository
type AlbumRepository ¶
type AlbumRepository interface { GetByID(ctx context.Context, albumID int) (*dbmodel.Album, error) GetByName(ctx context.Context, name string) (*dbmodel.Album, error) GetAlbums(ctx context.Context, data *dto.GetAlbumsDTO) (dbmodel.AlbumSlice, error) CountAlbums(ctx context.Context, data *dto.GetAlbumsDTO) (int64, error) }
func NewAlbumRepository ¶
func NewAlbumRepository(db sqlExecutor) AlbumRepository
type GenreRepository ¶
type GenreRepository interface { GetByID(ctx context.Context, genreID int) (*dbmodel.Genre, error) GetByName(ctx context.Context, name string) (*dbmodel.Genre, error) GetGenres(ctx context.Context, data *dto.GetGenresDTO) (dbmodel.GenreSlice, error) CountGenres(ctx context.Context, data *dto.GetGenresDTO) (int64, error) }
func NewGenreRepository ¶
func NewGenreRepository(db sqlExecutor) GenreRepository
type TrackRepository ¶
type TrackRepository interface { GetByID(ctx context.Context, trackID int) (*dbmodel.Track, error) GetByFilePath(ctx context.Context, filePath string) (*dbmodel.Track, error) GetByFilePathHash(ctx context.Context, filePathHash string) (*dbmodel.Track, error) GetTracks(ctx context.Context, data *dto.GetTracksDTO) (dbmodel.TrackSlice, error) CountTracks(ctx context.Context, data *dto.GetTracksDTO) (int64, error) }
func NewTrackRepository ¶
func NewTrackRepository(db sqlExecutor) TrackRepository
type TxnInsertTrack ¶
type TxnInsertTrack interface {
Commit(ctx context.Context, o *dto.TxnInsertTrackDTO) error
}
func NewTxnInsertTrack ¶
func NewTxnInsertTrack(db sqlExecutor) TxnInsertTrack
Source Files ¶
Click to show internal directories.
Click to hide internal directories.