Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumData ¶
type AlbumData struct { Name string URL string ImageURL string Artist string ArtistURL string Scrobbles int }
AlbumData contains information about an Album on LastFM
type ArtistData ¶
ArtistData contains information about an Artist on LastFM
func GetTopArtists ¶
func GetTopArtists(client *lastfm.Api, username string, limit int, period Period) ([]ArtistData, error)
GetTopArtists returns the top artists of an user
type Period ¶
type Period string
Period is a type for periods used for Last.FM requests
const ( PeriodOverall Period = "overall" Period7day Period = "7day" Period1month Period = "1month" Period3month Period = "3month" Period6month Period = "6month" Period12month Period = "12month" )
defines possible LastFM periods
func GetPeriodFromArgs ¶
GetPeriodFromArgs parses args to figure out the correct period
type TrackData ¶
type TrackData struct { Name string URL string ImageURL string Artist string ArtistURL string ArtistImageURL string Album string Time time.Time Loved bool NowPlaying bool Scrobbles int // used for guild stats Users int }
TrackData contains information about a Track on LastFM
Click to show internal directories.
Click to hide internal directories.