music

package
v0.5.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentSongHandler added in v0.3.8

type CurrentSongHandler struct {
	client.Handler
	// contains filtered or unexported fields
}

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

type DownloadHandler struct {
	client.Handler
	// contains filtered or unexported fields
}

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL