Documentation ¶
Index ¶
- func GenerateCollageForAlbum(ctx context.Context, username string, period constants.Period, count int, ...) (*image.Image, *bytes.Buffer, error)
- func GenerateCollageForArtist(ctx context.Context, username string, period constants.Period, count int, ...) (*image.Image, *bytes.Buffer, error)
- func GenerateCollageForTrack(ctx context.Context, username string, period constants.Period, count int, ...) (*image.Image, *bytes.Buffer, error)
- type Album
- type Artist
- type LastFMAlbum
- type LastFMArtist
- type LastFMTopAlbums
- type LastFMTopArtists
- type LastFMTopTracks
- type LastFMTrack
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCollageForAlbum ¶
Types ¶
type Album ¶
type Album struct { Name string Artist string Playcount string ImageUrl string Image image.Image Mbid string ImageSize string }
func (*Album) ClearImage ¶
func (a *Album) ClearImage()
func (*Album) GetCacheEntry ¶
func (a *Album) GetCacheEntry() cache.CacheEntry
func (*Album) GetIdentifier ¶
func (*Album) GetImageUrl ¶
func (*Album) GetParameters ¶
type Artist ¶
type Artist struct { Name string Playcount string Image image.Image ImageUrl string Mbid string ImageSize string Url string }
func (*Artist) ClearImage ¶
func (a *Artist) ClearImage()
func (*Artist) GetCacheEntry ¶
func (a *Artist) GetCacheEntry() cache.CacheEntry
func (*Artist) GetIdentifier ¶
func (*Artist) GetImageUrl ¶
func (*Artist) GetParameters ¶
type LastFMAlbum ¶
type LastFMAlbum struct { Artist struct { URL string `json:"url"` ArtistName string `json:"name"` Mbid string `json:"mbid"` } `json:"artist"` Mbid string `json:"mbid"` URL string `json:"url"` Playcount string `json:"playcount"` Attr struct { Rank string `json:"rank"` } `json:"@attr"` AlbumName string `json:"name"` Images []lastfm.LastFMImage `json:"image"` }
type LastFMArtist ¶
type LastFMTopAlbums ¶
type LastFMTopAlbums struct { TopAlbums struct { Attr lastfm.LastFMUser `json:"@attr"` Albums []LastFMAlbum `json:"album"` } `json:"topalbums"` }
func (*LastFMTopAlbums) Append ¶
func (a *LastFMTopAlbums) Append(l lastfm.LastFMResponse) error
func (*LastFMTopAlbums) GetTotalFetched ¶
func (a *LastFMTopAlbums) GetTotalFetched() int
func (*LastFMTopAlbums) GetTotalPages ¶
func (a *LastFMTopAlbums) GetTotalPages() int
type LastFMTopArtists ¶
type LastFMTopArtists struct { TopArtists struct { Attr lastfm.LastFMUser `json:"@attr"` Artists []LastFMArtist `json:"artist"` } `json:"topartists"` }
func (*LastFMTopArtists) Append ¶
func (a *LastFMTopArtists) Append(l lastfm.LastFMResponse) error
func (*LastFMTopArtists) GetTotalFetched ¶
func (a *LastFMTopArtists) GetTotalFetched() int
func (*LastFMTopArtists) GetTotalPages ¶
func (a *LastFMTopArtists) GetTotalPages() int
type LastFMTopTracks ¶
type LastFMTopTracks struct { TopTracks struct { Attr lastfm.LastFMUser `json:"@attr"` Tracks []LastFMTrack `json:"track"` } `json:"toptracks"` }
func (*LastFMTopTracks) Append ¶
func (t *LastFMTopTracks) Append(l lastfm.LastFMResponse) error
func (*LastFMTopTracks) GetTotalFetched ¶
func (t *LastFMTopTracks) GetTotalFetched() int
func (*LastFMTopTracks) GetTotalPages ¶
func (t *LastFMTopTracks) GetTotalPages() int
type LastFMTrack ¶
type LastFMTrack struct { Artist struct { URL string `json:"url"` Name string `json:"name"` Mbid string `json:"mbid"` } `json:"artist"` Mbid string `json:"mbid"` Name string `json:"name"` URL string `json:"url"` Duration string `json:"duration"` Attr struct { Rank string `json:"rank"` } `json:"@attr"` Playcount string `json:"playcount"` Images []lastfm.LastFMImage `json:"image"` }
type Track ¶
type Track struct { Name string Artist string Playcount string Album string ImageUrl string Image image.Image Mbid string ImageSize string }
func (*Track) ClearImage ¶
func (t *Track) ClearImage()
func (*Track) GetCacheEntry ¶
func (t *Track) GetCacheEntry() cache.CacheEntry
func (*Track) GetIdentifier ¶
func (*Track) GetImageUrl ¶
func (*Track) GetParameters ¶
Click to show internal directories.
Click to hide internal directories.