Documentation
¶
Index ¶
- Constants
- func CuiAssertQueueNextTrack(trackName string) (bool, string)
- func CuiAssertSelectedPlaylist(playlist string) (bool, string)
- func CuiAssertSelectedTrack(track string) (bool, string)
- func InitialiseConsoleUserInterface(ev *sconsify.Events, loadState bool) sconsify.UserInterface
- type ConsoleUserInterface
- func (cui *ConsoleUserInterface) ArtistAlbums(folder *sconsify.Playlist)
- 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 KeyEntry
- type KeyMapping
- type Keyboard
- type Player
- type RegularPlayer
- type State
Constants ¶
View Source
const ( VIEW_PLAYLISTS = "playlists" VIEW_TRACKS = "tracks" VIEW_QUEUE = "queue" VIEW_STATUS = "status" )
View Source
const ( PauseTrack string = "PauseTrack" ShuffleMode string = "ShuffleMode" ShuffleAllMode string = "ShuffleAllMode" NextTrack string = "NextTrack" ReplayTrack string = "ReplayTrack" Search string = "Search" Quit string = "Quit" QueueTrack string = "QueueTrack" QueuePlaylist string = "QueuePlaylist" RepeatPlayingTrack string = "RepeatPlayingTrack" RemoveTrack string = "RemoveTrack" RemoveAllTracks string = "RemoveAllTracks" GoToFirstLine string = "GoToFirstLine" GoToLastLine string = "GoToLastLine" PlaySelectedTrack string = "PlaySelectedTrack" Up string = "Up" Down string = "Down" Left string = "Left" Right string = "Right" OpenCloseFolder string = "OpenCloseFolder" ArtistAlbums string = "ArtistAlbums" )
Variables ¶
This section is empty.
Functions ¶
func CuiAssertQueueNextTrack ¶
func CuiAssertSelectedTrack ¶
func InitialiseConsoleUserInterface ¶
func InitialiseConsoleUserInterface(ev *sconsify.Events, loadState bool) sconsify.UserInterface
Types ¶
type ConsoleUserInterface ¶
type ConsoleUserInterface struct{}
func (*ConsoleUserInterface) ArtistAlbums ¶
func (cui *ConsoleUserInterface) ArtistAlbums(folder *sconsify.Playlist)
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 Keyboard ¶
type Keyboard struct { ConfiguredKeys map[string][]string UsedFunctions map[string]bool SequentialKeys map[string]gocui.KeybindingHandler Keys []*KeyMapping }
type RegularPlayer ¶
type RegularPlayer struct{}
func (*RegularPlayer) Pause ¶
func (p *RegularPlayer) Pause()
func (*RegularPlayer) Play ¶
func (p *RegularPlayer) Play()
Click to show internal directories.
Click to hide internal directories.