Documentation ¶
Index ¶
- func GetImageIdForArtist(ctx context.Context, artistUrl string) (string, error)
- func GetLastFmResponse[T LastFMResponse](ctx context.Context, collageType constants.CollageType, username string, ...) (*T, error)
- func GetTrackInfo(trackName string, artistName string, imageSize string) (*models.TrackInfo, error)
- type CleanError
- type GetTrackInfoResponse
- type LastFMImage
- type LastFMResponse
- type LastFMUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageIdForArtist ¶
func GetLastFmResponse ¶
func GetLastFmResponse[T LastFMResponse](ctx context.Context, collageType constants.CollageType, username string, period constants.Period, count int) (*T, error)
Types ¶
type CleanError ¶
type CleanError struct {
// contains filtered or unexported fields
}
func (CleanError) Error ¶
func (e CleanError) Error() string
type GetTrackInfoResponse ¶
type GetTrackInfoResponse struct { Track struct { Album struct { AlbumName string `json:"title"` Images []LastFMImage `json:"image"` } `json:"Album"` } `json:"track"` }
type LastFMImage ¶
type LastFMResponse ¶
type LastFMResponse interface { Append(l LastFMResponse) error GetTotalPages() int GetTotalFetched() int }
Click to show internal directories.
Click to hide internal directories.