Documentation ¶
Index ¶
- Variables
- type Album
- type AlbumFull
- type ArtistFull
- type Library
- func (l *Library) AddAlbum(album model.Album) error
- func (l *Library) AddAlbumArtistLink(artistID, albumID uuid.UUID, appearance bool) error
- func (l *Library) AddArtist(artist model.Artist) error
- func (l *Library) AddPlaylist(title, description string) error
- func (l *Library) AddPlaylistTrackLink(playlistID, trackID uuid.UUID) error
- func (l *Library) AddTrack(track model.Track) error
- func (l *Library) AddTrackArtistLink(artistID, trackId uuid.UUID) error
- func (l *Library) GetAlbum(id string, isStreamingId bool) (Album, error)
- func (l *Library) GetAlbumFull(id string, isStreamingId bool) (AlbumFull, error)
- func (l *Library) GetAllAlbums(sortBy string, offset int, limit int) ([]Album, error)
- func (l *Library) GetAllArtists() ([]model.Artist, error)
- func (l *Library) GetAllPlaylists() ([]model.Playlist, error)
- func (l *Library) GetArtist(id string, isStreamingId bool) (model.Artist, error)
- func (l *Library) GetArtistFull(id string, isStreamingId bool) (ArtistFull, error)
- func (l *Library) GetPlaylistFull(id string) (PlaylistFull, error)
- func (l *Library) GetTrack(id string, isStreamingId bool) (Track, error)
- func (l *Library) Search(ctx context.Context, query string, limit int) (SearchResult, error)
- func (l *Library) UpgradeAlbum(id uuid.UUID, imageUrl string, release time.Time, trackNum int) error
- func (l *Library) UpgradeArtist(id uuid.UUID) error
- type PlaylistFull
- type SearchResult
- type Track
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlbumNotFound = errors.New("album not found in library")
View Source
var (
ErrArtistNotFound = errors.New("artist not found in library")
)
View Source
var (
ErrPlaylistNotFound = errors.New("playlist not found in library")
)
View Source
var ErrTrackNotFound = errors.New("track not found in library")
Functions ¶
This section is empty.
Types ¶
type ArtistFull ¶
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
func (*Library) AddAlbumArtistLink ¶
func (*Library) AddPlaylist ¶
func (*Library) AddPlaylistTrackLink ¶
func (*Library) AddTrackArtistLink ¶
func (*Library) GetAlbumFull ¶
func (*Library) GetAllAlbums ¶
func (*Library) GetArtistFull ¶
func (l *Library) GetArtistFull(id string, isStreamingId bool) (ArtistFull, error)
func (*Library) GetPlaylistFull ¶
func (l *Library) GetPlaylistFull(id string) (PlaylistFull, error)
func (*Library) UpgradeAlbum ¶
type PlaylistFull ¶
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.