music

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MusicNodeChannel

type MusicNodeChannel struct {
	channel.NoSave
	channel.Limit
	channel.NoRunClose
	// contains filtered or unexported fields
}

func NewMusicNode

func NewMusicNode(log *log.Logger, col *collection.Collection) *MusicNodeChannel

func (*MusicNodeChannel) HandleBIN

func (*MusicNodeChannel) HandleJSON

func (c *MusicNodeChannel) HandleJSON(cl channel.Client, r io.Reader) (io.Reader, error)

func (*MusicNodeChannel) Register

func (c *MusicNodeChannel) Register(chnl string, s channel.Sender) error

type PlaylistChannel

type PlaylistChannel struct {
	channel.NoSave
	channel.SendOnly
	channel.NoRunClose
	// contains filtered or unexported fields
}

func NewPlaylist

func NewPlaylist(l *log.Logger, col *collection.Collection) *PlaylistChannel

func (*PlaylistChannel) Register

func (c *PlaylistChannel) Register(chnl string, s channel.Sender) error

func (*PlaylistChannel) Send

func (c *PlaylistChannel) Send()

type PlaylistSongsChannel added in v0.5.0

type PlaylistSongsChannel struct {
	channel.NoSave
	channel.Limit
	channel.NoRunClose
	// contains filtered or unexported fields
}

func NewPlaylistSongs added in v0.5.0

func NewPlaylistSongs(l *log.Logger, col *collection.Collection) *PlaylistSongsChannel

func (*PlaylistSongsChannel) HandleBIN added in v0.5.0

func (*PlaylistSongsChannel) HandleJSON added in v0.5.0

func (c *PlaylistSongsChannel) HandleJSON(cl channel.Client, r io.Reader) (io.Reader, error)

func (*PlaylistSongsChannel) Register added in v0.5.0

func (c *PlaylistSongsChannel) Register(chnl string, s channel.Sender) error

type SongChannel

type SongChannel struct {
	channel.NoSave
	channel.SendOnly
	channel.NoRunClose
	// contains filtered or unexported fields
}

func NewSong

func NewSong(l *log.Logger, q *collection.Queue) *SongChannel

func (*SongChannel) Register

func (c *SongChannel) Register(chnl string, s channel.Sender) error

func (*SongChannel) Send

func (c *SongChannel) Send()

type StateChannel

type StateChannel struct {
	channel.NoSave
	channel.SendOnly
	channel.NoRunClose
	// contains filtered or unexported fields
}

func NewState

func NewState(l *log.Logger, p *player.Player) *StateChannel

func (*StateChannel) Register

func (c *StateChannel) Register(chnl string, s channel.Sender) error

func (*StateChannel) Send

func (c *StateChannel) Send()

type YMChannel

type YMChannel struct {
	channel.NoSave
	channel.Limit
	channel.NoRun
	// contains filtered or unexported fields
}

func NewYM

func NewYM(
	log *log.Logger,
	status *status.StatusChannel,
	ymPath string,
	acoust acoustid.Config,
) *YMChannel

func (*YMChannel) AtomicFlush

func (c *YMChannel) AtomicFlush(cb func(ui.AtomicOutput))

func (*YMChannel) Close

func (c *YMChannel) Close() error

func (*YMChannel) Err

func (c *YMChannel) Err(err error)

func (*YMChannel) Flush

func (c *YMChannel) Flush()

func (*YMChannel) HandleBIN

func (c *YMChannel) HandleBIN(cl channel.Client, r channel.BinaryReader) error

func (*YMChannel) HandleJSON

func (c *YMChannel) HandleJSON(cl channel.Client, r io.Reader) (io.Reader, error)

func (*YMChannel) LoadPlayerPosition added in v0.3.14

func (c *YMChannel) LoadPlayerPosition() error

func (*YMChannel) NodeChannel

func (c *YMChannel) NodeChannel() *MusicNodeChannel

func (*YMChannel) PlaylistChannel

func (c *YMChannel) PlaylistChannel() *PlaylistChannel

func (*YMChannel) PlaylistSendInterval

func (c *YMChannel) PlaylistSendInterval(iv time.Duration)

func (*YMChannel) PlaylistSongsChannel added in v0.5.0

func (c *YMChannel) PlaylistSongsChannel() *PlaylistSongsChannel

func (*YMChannel) Register

func (c *YMChannel) Register(chnl string, s channel.Sender) error

func (*YMChannel) SaveCollection

func (c *YMChannel) SaveCollection() error

func (*YMChannel) SavePlayerPosition added in v0.3.14

func (c *YMChannel) SavePlayerPosition() error

func (*YMChannel) SendInterval

func (c *YMChannel) SendInterval(iv time.Duration)

func (*YMChannel) SetSongs

func (c *YMChannel) SetSongs(songs []ui.Song)

func (*YMChannel) SetText

func (c *YMChannel) SetText(text string)

func (*YMChannel) SetTitle

func (c *YMChannel) SetTitle(title string)

func (*YMChannel) SetView

func (c *YMChannel) SetView(view ui.View)

func (*YMChannel) SongChannel

func (c *YMChannel) SongChannel() *SongChannel

func (*YMChannel) StateChannel

func (c *YMChannel) StateChannel() *StateChannel

func (*YMChannel) StateSendInterval

func (c *YMChannel) StateSendInterval(iv time.Duration)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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