Documentation ¶
Index ¶
- type MusicNodeChannel
- type PlaylistChannel
- type PlaylistSongsChannel
- type SongChannel
- type StateChannel
- type YMChannel
- func (c *YMChannel) AtomicFlush(cb func(ui.AtomicOutput))
- func (c *YMChannel) Close() error
- func (c *YMChannel) Err(err error)
- func (c *YMChannel) Flush()
- func (c *YMChannel) HandleBIN(cl channel.Client, r channel.BinaryReader) error
- func (c *YMChannel) HandleJSON(cl channel.Client, r io.Reader) (io.Reader, error)
- func (c *YMChannel) LoadPlayerPosition() error
- func (c *YMChannel) NodeChannel() *MusicNodeChannel
- func (c *YMChannel) PlaylistChannel() *PlaylistChannel
- func (c *YMChannel) PlaylistSendInterval(iv time.Duration)
- func (c *YMChannel) PlaylistSongsChannel() *PlaylistSongsChannel
- func (c *YMChannel) Register(chnl string, s channel.Sender) error
- func (c *YMChannel) SaveCollection() error
- func (c *YMChannel) SavePlayerPosition() error
- func (c *YMChannel) SendInterval(iv time.Duration)
- func (c *YMChannel) SetSongs(songs []ui.Song)
- func (c *YMChannel) SetText(text string)
- func (c *YMChannel) SetTitle(title string)
- func (c *YMChannel) SetView(view ui.View)
- func (c *YMChannel) SongChannel() *SongChannel
- func (c *YMChannel) StateChannel() *StateChannel
- func (c *YMChannel) StateSendInterval(iv time.Duration)
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 (c *MusicNodeChannel) HandleBIN(cl channel.Client, r channel.BinaryReader) error
func (*MusicNodeChannel) HandleJSON ¶
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 (c *PlaylistSongsChannel) HandleBIN(cl channel.Client, r channel.BinaryReader) error
func (*PlaylistSongsChannel) HandleJSON ¶ added in v0.5.0
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) Send ¶
func (c *SongChannel) Send()
type StateChannel ¶
type StateChannel struct { channel.NoSave channel.SendOnly channel.NoRunClose // contains filtered or unexported fields }
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 (*YMChannel) AtomicFlush ¶
func (c *YMChannel) AtomicFlush(cb func(ui.AtomicOutput))
func (*YMChannel) HandleJSON ¶
func (*YMChannel) LoadPlayerPosition ¶ added in v0.3.14
func (*YMChannel) NodeChannel ¶
func (c *YMChannel) NodeChannel() *MusicNodeChannel
func (*YMChannel) PlaylistChannel ¶
func (c *YMChannel) PlaylistChannel() *PlaylistChannel
func (*YMChannel) PlaylistSendInterval ¶
func (*YMChannel) PlaylistSongsChannel ¶ added in v0.5.0
func (c *YMChannel) PlaylistSongsChannel() *PlaylistSongsChannel
func (*YMChannel) SaveCollection ¶
func (*YMChannel) SavePlayerPosition ¶ added in v0.3.14
func (*YMChannel) SendInterval ¶
func (*YMChannel) SongChannel ¶
func (c *YMChannel) SongChannel() *SongChannel
func (*YMChannel) StateChannel ¶
func (c *YMChannel) StateChannel() *StateChannel
func (*YMChannel) StateSendInterval ¶
Click to show internal directories.
Click to hide internal directories.