Documentation
¶
Index ¶
- Constants
- func InitialiseConsoleUserInterface(ev *sconsify.Events) sconsify.UserInterface
- func InitialiseNoUserInterface(events *sconsify.Events, output Printer, repeatOn *bool, shuffle *bool) sconsify.UserInterface
- type ConsoleUserInterface
- func (cui *ConsoleUserInterface) GetNextToPlay() *sconsify.Track
- func (cui *ConsoleUserInterface) NewPlaylists(newPlaylist sconsify.Playlists) error
- func (cui *ConsoleUserInterface) PlayTokenLost() error
- func (cui *ConsoleUserInterface) Shutdown()
- func (cui *ConsoleUserInterface) TrackNotAvailable(track *sconsify.Track)
- func (cui *ConsoleUserInterface) TrackPaused(track *sconsify.Track)
- func (cui *ConsoleUserInterface) TrackPlaying(track *sconsify.Track)
- type Gui
- type KeyMapping
- type NoUi
- func (noui *NoUi) GetNextToPlay() *sconsify.Track
- func (noui *NoUi) NewPlaylists(playlists sconsify.Playlists) error
- func (noui *NoUi) PlayTokenLost() error
- func (noui *NoUi) Shutdown()
- func (noui *NoUi) TrackNotAvailable(track *sconsify.Track)
- func (noui *NoUi) TrackPaused(track *sconsify.Track)
- func (noui *NoUi) TrackPlaying(track *sconsify.Track)
- type PersistStatePlayer
- type Player
- type Printer
- type Queue
- type RegularPlayer
- type SilentPrinter
- type StandardOutputPrinter
- type State
Constants ¶
View Source
const ( VIEW_PLAYLISTS = "playlists" VIEW_TRACKS = "tracks" VIEW_QUEUE = "queue" VIEW_STATUS = "status" )
View Source
const QUEUE_MAX_ELEMENTS = 100
Variables ¶
This section is empty.
Functions ¶
func InitialiseConsoleUserInterface ¶
func InitialiseConsoleUserInterface(ev *sconsify.Events) sconsify.UserInterface
Types ¶
type ConsoleUserInterface ¶
type ConsoleUserInterface struct{}
func (*ConsoleUserInterface) GetNextToPlay ¶
func (cui *ConsoleUserInterface) GetNextToPlay() *sconsify.Track
func (*ConsoleUserInterface) NewPlaylists ¶
func (cui *ConsoleUserInterface) NewPlaylists(newPlaylist sconsify.Playlists) error
func (*ConsoleUserInterface) PlayTokenLost ¶
func (cui *ConsoleUserInterface) PlayTokenLost() error
func (*ConsoleUserInterface) Shutdown ¶
func (cui *ConsoleUserInterface) Shutdown()
func (*ConsoleUserInterface) TrackNotAvailable ¶
func (cui *ConsoleUserInterface) TrackNotAvailable(track *sconsify.Track)
func (*ConsoleUserInterface) TrackPaused ¶
func (cui *ConsoleUserInterface) TrackPaused(track *sconsify.Track)
func (*ConsoleUserInterface) TrackPlaying ¶
func (cui *ConsoleUserInterface) TrackPlaying(track *sconsify.Track)
type KeyMapping ¶
type KeyMapping struct {
// contains filtered or unexported fields
}
type NoUi ¶
type NoUi struct {
// contains filtered or unexported fields
}
func (*NoUi) GetNextToPlay ¶
func (*NoUi) PlayTokenLost ¶
func (*NoUi) TrackNotAvailable ¶
func (*NoUi) TrackPaused ¶
func (*NoUi) TrackPlaying ¶
type PersistStatePlayer ¶
type PersistStatePlayer struct {
// contains filtered or unexported fields
}
func (*PersistStatePlayer) Pause ¶
func (p *PersistStatePlayer) Pause()
func (*PersistStatePlayer) Play ¶
func (p *PersistStatePlayer) Play()
type RegularPlayer ¶
type RegularPlayer struct{}
func (*RegularPlayer) Pause ¶
func (p *RegularPlayer) Pause()
func (*RegularPlayer) Play ¶
func (p *RegularPlayer) Play()
type SilentPrinter ¶
type SilentPrinter struct{}
func (*SilentPrinter) Print ¶
func (p *SilentPrinter) Print(message string)
type StandardOutputPrinter ¶
type StandardOutputPrinter struct{}
func (*StandardOutputPrinter) Print ¶
func (p *StandardOutputPrinter) Print(message string)
Click to show internal directories.
Click to hide internal directories.