Documentation ¶
Index ¶
- Variables
- func Ban(api *lastfm.Api, artist, track string)
- func Close()
- func HandleSpotifySession(session *spotify.Session, exit <-chan bool)
- func LoginLastFm(user *LastFmUser) (api *lastfm.Api, err error)
- func Love(api *lastfm.Api, artist, track string)
- func Scrobble(api *lastfm.Api, artist, track, album string)
- func SendNowPlaying(api *lastfm.Api, artist, track, album string)
- func Unlove(api *lastfm.Api, artist, track string)
- type LastFmArtist
- type LastFmTrack
- type LastFmUser
- type LovedTracksRadio
- type Player
- func (p *Player) Controller()
- func (p *Player) LoadRadio(name string, username string) error
- func (p *Player) LoginToLastFm(user, password string) bool
- func (p *Player) LoginToSpotify(user, password string) bool
- func (p *Player) Logout()
- func (p *Player) Pause()
- func (p *Player) Play()
- func (p *Player) SendToLastfm(mode string)
- func (p *Player) Skip()
- func (p *Player) Stop()
- type PublishedData
- type Radio
- type RecommendedRadio
- type SimilarRadio
- type SpotifyUser
- type TagTracksRadio
- type TopArtistsRadio
- type TopTracksRadio
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LOCAL_APP_DIR = os.Getenv("HOME") + "/.local/share/lastradio"
)
Functions ¶
func HandleSpotifySession ¶
func LoginLastFm ¶
func LoginLastFm(user *LastFmUser) (api *lastfm.Api, err error)
func SendNowPlaying ¶
Types ¶
type LastFmArtist ¶
type LastFmTrack ¶
type LastFmUser ¶
func (*LastFmUser) GetUsername ¶
func (u *LastFmUser) GetUsername() string
type LovedTracksRadio ¶
type LovedTracksRadio struct {
// contains filtered or unexported fields
}
func (*LovedTracksRadio) Load ¶
func (radio *LovedTracksRadio) Load() error
func (*LovedTracksRadio) Run ¶
func (radio *LovedTracksRadio) Run()
type Player ¶
type Player struct { LoggedIn bool Radio Radio Public *PublishedData Spotify *spotify.Session Lastfm *lastfm.Api LastFmUser *LastFmUser Exit chan bool // contains filtered or unexported fields }
func (*Player) Controller ¶
func (p *Player) Controller()
func (*Player) LoginToLastFm ¶
func (*Player) LoginToSpotify ¶
func (*Player) SendToLastfm ¶
type PublishedData ¶
type PublishedData struct { Name string Artist string Album string Year int Image string IsLoved bool Duration float64 ScrobbleAt int NowPlayingAt int }
func (*PublishedData) SetData ¶
func (p *PublishedData) SetData(track *LastFmTrack)
type RecommendedRadio ¶
type RecommendedRadio struct {
// contains filtered or unexported fields
}
func (*RecommendedRadio) Load ¶
func (radio *RecommendedRadio) Load() error
func (*RecommendedRadio) Run ¶
func (radio *RecommendedRadio) Run()
type SimilarRadio ¶
type SimilarRadio struct {
// contains filtered or unexported fields
}
func (*SimilarRadio) Load ¶
func (radio *SimilarRadio) Load() error
func (*SimilarRadio) Run ¶
func (radio *SimilarRadio) Run()
type SpotifyUser ¶
type TagTracksRadio ¶
type TagTracksRadio struct {
// contains filtered or unexported fields
}
func (*TagTracksRadio) Load ¶
func (radio *TagTracksRadio) Load() error
func (*TagTracksRadio) Run ¶
func (radio *TagTracksRadio) Run()
type TopArtistsRadio ¶
type TopArtistsRadio struct {
// contains filtered or unexported fields
}
func (*TopArtistsRadio) Load ¶
func (radio *TopArtistsRadio) Load() error
func (*TopArtistsRadio) Run ¶
func (radio *TopArtistsRadio) Run()
type TopTracksRadio ¶
type TopTracksRadio struct {
// contains filtered or unexported fields
}
func (*TopTracksRadio) Load ¶
func (radio *TopTracksRadio) Load() error
func (*TopTracksRadio) Run ¶
func (radio *TopTracksRadio) Run()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.