Documentation
¶
Index ¶
- Constants
- func CloseLogger()
- func Debug(message string)
- func Debugf(format string, v ...interface{})
- func DeleteCache(cacheLocation string) error
- func DeleteLogFile(logFileLocation string) error
- func GetCacheLocation() string
- func GetLogFileLocation() string
- func GetStateFileLocation() string
- func InitialiseLogger()
- func ProcessSconsifyrc()
- func SaveFile(fileLocation string, content []byte)
- func StartMainLoop(events *Events, ui UserInterface, askForFirstTrack bool) error
- type Events
- func (events *Events) NewPlaylist(playlists *Playlists)
- func (events *Events) NextPlay()
- func (events *Events) NextPlayUpdates() <-chan bool
- func (events *Events) Pause()
- func (events *Events) PauseUpdates() <-chan bool
- func (events *Events) Play(track *Track)
- func (events *Events) PlayTokenLost()
- func (events *Events) PlayTokenLostUpdates() <-chan bool
- func (events *Events) PlayUpdates() <-chan *Track
- func (events *Events) PlaylistsUpdates() <-chan Playlists
- func (events *Events) Replay()
- func (events *Events) ReplayUpdates() <-chan bool
- func (events *Events) Search(query string)
- func (events *Events) SearchUpdates() <-chan string
- func (events *Events) ShutdownEngine()
- func (events *Events) ShutdownEngineUpdates() <-chan bool
- func (events *Events) ShutdownSpotify()
- func (events *Events) ShutdownSpotifyUpdates() <-chan bool
- func (events *Events) TrackNotAvailable(track *Track)
- func (events *Events) TrackNotAvailableUpdates() <-chan *Track
- func (events *Events) TrackPaused(track *Track)
- func (events *Events) TrackPausedUpdates() <-chan *Track
- func (events *Events) TrackPlaying(track *Track)
- func (events *Events) TrackPlayingUpdates() <-chan *Track
- type Playlist
- func (playlist *Playlist) GetNextTrack(currentIndexTrack int) (int, bool)
- func (playlist *Playlist) Id() string
- func (playlist *Playlist) IndexByUri(uri string) int
- func (playlist *Playlist) IsSearch() bool
- func (playlist *Playlist) Name() string
- func (playlist *Playlist) Track(index int) *Track
- func (playlist *Playlist) Tracks() int
- type PlaylistByName
- type Playlists
- func (playlists *Playlists) AddPlaylist(playlist *Playlist)
- func (playlists *Playlists) Get(name string) *Playlist
- func (playlists *Playlists) GetById(id string) *Playlist
- func (playlists *Playlists) GetModeAsString() string
- func (playlists *Playlists) GetNext() (*Track, bool)
- func (playlists *Playlists) GetPlayingPlaylist() *Playlist
- func (playlists *Playlists) GetPlayingTrack() *Track
- func (playlists *Playlists) HasPlaylistSelected() bool
- func (playlists *Playlists) InvertMode(mode int) int
- func (playlists *Playlists) Merge(newPlaylist *Playlists)
- func (playlists *Playlists) Names() []string
- func (playlists *Playlists) Playlists() int
- func (playlists *Playlists) PremadeTracks() int
- func (playlists *Playlists) Remove(playlistName string)
- func (playlists *Playlists) SetCurrents(currentPlaylist string, currentIndexTrack int) error
- func (playlists *Playlists) SetMode(mode int)
- func (playlists *Playlists) Tracks() int
- type Track
- type UserInterface
Constants ¶
View Source
const ( NormalMode = iota ShuffleMode ShuffleAllMode SequentialMode )
View Source
const SCONSIFY_CONF_LOCATION = "/.sconsify"
Variables ¶
This section is empty.
Functions ¶
func CloseLogger ¶
func CloseLogger()
func DeleteCache ¶
func DeleteLogFile ¶
func GetCacheLocation ¶
func GetCacheLocation() string
func GetLogFileLocation ¶
func GetLogFileLocation() string
func GetStateFileLocation ¶
func GetStateFileLocation() string
func InitialiseLogger ¶
func InitialiseLogger()
func ProcessSconsifyrc ¶
func ProcessSconsifyrc()
func StartMainLoop ¶
func StartMainLoop(events *Events, ui UserInterface, askForFirstTrack bool) error
Types ¶
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
func InitialiseEvents ¶
func InitialiseEvents() *Events
func (*Events) NewPlaylist ¶
func (*Events) NextPlayUpdates ¶
func (*Events) PauseUpdates ¶
func (*Events) PlayTokenLost ¶
func (events *Events) PlayTokenLost()
func (*Events) PlayTokenLostUpdates ¶
func (*Events) PlayUpdates ¶
func (*Events) PlaylistsUpdates ¶
func (*Events) ReplayUpdates ¶
func (*Events) SearchUpdates ¶
func (*Events) ShutdownEngine ¶
func (events *Events) ShutdownEngine()
func (*Events) ShutdownEngineUpdates ¶
func (*Events) ShutdownSpotify ¶
func (events *Events) ShutdownSpotify()
func (*Events) ShutdownSpotifyUpdates ¶
func (*Events) TrackNotAvailable ¶
func (*Events) TrackNotAvailableUpdates ¶
func (*Events) TrackPaused ¶
func (*Events) TrackPausedUpdates ¶
func (*Events) TrackPlaying ¶
func (*Events) TrackPlayingUpdates ¶
type Playlist ¶
type Playlist struct {
// contains filtered or unexported fields
}
func InitSearchPlaylist ¶
func (*Playlist) GetNextTrack ¶
func (*Playlist) IndexByUri ¶
type PlaylistByName ¶
type PlaylistByName []Playlist
func (PlaylistByName) Less ¶
func (p PlaylistByName) Less(i, j int) bool
func (PlaylistByName) Swap ¶
func (p PlaylistByName) Swap(i, j int)
type Playlists ¶
type Playlists struct {
// contains filtered or unexported fields
}
func InitPlaylists ¶
func InitPlaylists() *Playlists
func (*Playlists) AddPlaylist ¶
func (*Playlists) GetModeAsString ¶
func (*Playlists) GetPlayingPlaylist ¶
func (*Playlists) GetPlayingTrack ¶
func (*Playlists) HasPlaylistSelected ¶
func (*Playlists) InvertMode ¶
func (*Playlists) PremadeTracks ¶
func (*Playlists) SetCurrents ¶
type Track ¶
type Track struct { Uri string // contains filtered or unexported fields }
func InitPartialTrack ¶
func ToSconsifyTrack ¶
func (*Track) GetFullTitle ¶
Click to show internal directories.
Click to hide internal directories.