Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LASTFM_KEY string
View Source
var Lastfm = lastfm{
Name: "Last.fm",
}
View Source
var Listenbrainz = listenbrainz{
Name: "ListenBrainz",
}
Functions ¶
This section is empty.
Types ¶
type FromScrobbler ¶
type LastFmObject ¶
type LastFmResponse ¶
type LastFmResponse struct { RecentTracks struct { Track []struct { Artist LastFmObject `json:"artist"` Album LastFmObject `json:"album"` Name string `json:"name"` URL string `json:"url"` Cover []struct { Size string `json:"size"` URL string `json:"#text"` } `json:"image"` Time *LastFmTime `json:"date"` Attributes *struct { NowPlaying string `json:"nowplaying"` } `json:"@attr,omitempty"` } `json:"track"` } `json:"recenttracks"` }
type LastFmTime ¶
type Scrobbler ¶
type Scrobbler interface {
GetNowPlaying(username string) (resp ScrobblerResponse, err error)
}
type ScrobblerResponse ¶
Click to show internal directories.
Click to hide internal directories.