Documentation ¶
Index ¶
- type AlbumRepository
- func (r *AlbumRepository) GetByAlbumId(albumId string) (*core.Album, error)
- func (r *AlbumRepository) GetByArtistIdAndName(artistId uint, name string) (*core.Album, error)
- func (r *AlbumRepository) GetById(id uint) (*core.Album, error)
- func (r *AlbumRepository) Store(a *core.Album) (*core.Album, error)
- type ArtistRepository
- type IAlbumRepository
- type IArtistRepository
- type IMissingReleaseRepository
- type IPlaylistRepository
- type IReleaseRepository
- type ITrackRepository
- type MissingReleaseRepository
- type PlaylistRepository
- type ReleaseRepository
- type TrackRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumRepository ¶
type AlbumRepository struct {
// contains filtered or unexported fields
}
func NewAlbumRepository ¶
func NewAlbumRepository(dbHandler *gorm.DB) *AlbumRepository
func (*AlbumRepository) GetByAlbumId ¶
func (r *AlbumRepository) GetByAlbumId(albumId string) (*core.Album, error)
func (*AlbumRepository) GetByArtistIdAndName ¶
type ArtistRepository ¶
type ArtistRepository struct {
// contains filtered or unexported fields
}
func NewArtistRepository ¶
func NewArtistRepository(dbHandler *gorm.DB) *ArtistRepository
func (*ArtistRepository) GetByArtistId ¶
func (r *ArtistRepository) GetByArtistId(artistId string) (*core.Artist, error)
type IAlbumRepository ¶
type IArtistRepository ¶
type IMissingReleaseRepository ¶
type IMissingReleaseRepository interface { Fetch() []*core.MissingRelease FindByAlbumAndArtist(albumName string, artistName string) []*core.MissingRelease Store(r *core.MissingRelease) (*core.MissingRelease, error) }
type IPlaylistRepository ¶
type IReleaseRepository ¶
type ITrackRepository ¶
type MissingReleaseRepository ¶
type MissingReleaseRepository struct {
// contains filtered or unexported fields
}
func NewMissingReleaseRepository ¶
func NewMissingReleaseRepository(dbHandler *gorm.DB) *MissingReleaseRepository
func (*MissingReleaseRepository) Fetch ¶
func (r *MissingReleaseRepository) Fetch() []*core.MissingRelease
func (*MissingReleaseRepository) FindByAlbumAndArtist ¶
func (r *MissingReleaseRepository) FindByAlbumAndArtist(albumName string, artistName string) []*core.MissingRelease
func (*MissingReleaseRepository) Store ¶
func (r *MissingReleaseRepository) Store(mr *core.MissingRelease) (*core.MissingRelease, error)
type PlaylistRepository ¶
type PlaylistRepository struct {
// contains filtered or unexported fields
}
func NewPlaylistRepository ¶
func NewPlaylistRepository(dbHandler *gorm.DB) *PlaylistRepository
func (*PlaylistRepository) Fetch ¶
func (r *PlaylistRepository) Fetch() []*core.Playlist
func (*PlaylistRepository) GetById ¶
func (r *PlaylistRepository) GetById(id uint) (*core.Playlist, error)
type ReleaseRepository ¶
type ReleaseRepository struct {
// contains filtered or unexported fields
}
func NewReleaseRepository ¶
func NewReleaseRepository(dbHandler *gorm.DB) *ReleaseRepository
func (*ReleaseRepository) Fetch ¶
func (r *ReleaseRepository) Fetch() []*core.Release
func (*ReleaseRepository) GetByAlbumType ¶
func (r *ReleaseRepository) GetByAlbumType(albumType string) []*core.Release
type TrackRepository ¶
type TrackRepository struct {
// contains filtered or unexported fields
}
func NewTrackRepository ¶
func NewTrackRepository(dbHandler *gorm.DB) *TrackRepository
func (*TrackRepository) GetByPlaylistAndTrackId ¶
func (r *TrackRepository) GetByPlaylistAndTrackId(playlistId uint, trackId string) (*core.Track, error)
FEATURE: use cache here
Source Files ¶
Click to show internal directories.
Click to hide internal directories.