Documentation ¶
Index ¶
- type CurrentSongHandler
- type DownloadHandler
- func (h *DownloadHandler) DownloadPlaylist(playlist string, to time.Duration) error
- func (h *DownloadHandler) DownloadSong(ns, id string, to time.Duration) error
- func (h *DownloadHandler) HandleMusicNodeMessage(m musicdata.SongDataMessage) error
- func (h *DownloadHandler) HandleMusicPlaylistSongsMessage(m musicdata.ServerPlaylistSongsMessage) error
- func (h *DownloadHandler) Wait()
- type ErrorFlasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentSongHandler ¶ added in v0.3.8
func NewCurrentSongHandler ¶ added in v0.3.8
func NewCurrentSongHandler(handler client.Handler, updates chan<- client.MusicState) *CurrentSongHandler
func (*CurrentSongHandler) HandleMusicStateMessage ¶ added in v0.3.8
func (h *CurrentSongHandler) HandleMusicStateMessage(m client.MusicState) error
type DownloadHandler ¶
func NewDownloadHandler ¶
func NewDownloadHandler( handler client.Handler, log client.Logger, col *collection.Collection, cl *client.Client, ) *DownloadHandler
func (*DownloadHandler) DownloadPlaylist ¶
func (h *DownloadHandler) DownloadPlaylist(playlist string, to time.Duration) error
func (*DownloadHandler) DownloadSong ¶
func (h *DownloadHandler) DownloadSong(ns, id string, to time.Duration) error
func (*DownloadHandler) HandleMusicNodeMessage ¶
func (h *DownloadHandler) HandleMusicNodeMessage(m musicdata.SongDataMessage) error
func (*DownloadHandler) HandleMusicPlaylistSongsMessage ¶ added in v0.5.0
func (h *DownloadHandler) HandleMusicPlaylistSongsMessage(m musicdata.ServerPlaylistSongsMessage) error
func (*DownloadHandler) Wait ¶
func (h *DownloadHandler) Wait()
type ErrorFlasher ¶
type ErrorFlasher struct {
// contains filtered or unexported fields
}
func NewErrorFlasher ¶
func NewErrorFlasher(l client.Logger) *ErrorFlasher
func (*ErrorFlasher) Err ¶
func (e *ErrorFlasher) Err(err error)
Click to show internal directories.
Click to hide internal directories.