Documentation ¶
Index ¶
- Constants
- func GetUpdateMsg(subsystem string) tea.Msg
- func HumanizeTime(s int) string
- func SetCacheCursorPath(path string, cursorPos int)
- type File
- type MpdClient
- func (mpd *MpdClient) Close()
- func (mpd *MpdClient) CurrentSong() Track
- func (mpd *MpdClient) GetLibraryPath(path string) (int, []File)
- func (mpd *MpdClient) GetLibraryPathFromCache(path string) pathCache
- func (mpd *MpdClient) GetPlaylist(path string) []File
- func (mpd *MpdClient) GetPlaylists() []File
- func (mpd *MpdClient) GetQueue() []Track
- func (mpd *MpdClient) PlaylistAdd(name, uri string) error
- func (mpd *MpdClient) PlaylistDelete(name string, pos int)
- func (mpd *MpdClient) PlaylistMove(name string, from int, to int)
- func (mpd *MpdClient) PlaylistRemove(name string)
- func (mpd *MpdClient) PlaylistSave(name string) error
- func (mpd *MpdClient) ResetCache()
- func (mpd *MpdClient) Seek(pos, sec int)
- func (mpd *MpdClient) Status() MpdStatus
- func (mpd *MpdClient) UpdateLibrary()
- type MpdStatus
- type State
- type SubsystemEventMsg
- type Track
Constants ¶
View Source
const ( DirectoryType fileType = iota FileType PlaylistType )
Variables ¶
This section is empty.
Functions ¶
func GetUpdateMsg ¶
func HumanizeTime ¶
func SetCacheCursorPath ¶
store where the cursor is in which part of the library tree, so we return to the same place when going up a folder
Types ¶
type File ¶
type File struct { FileType fileType Path string Title string Artist string Duration int Album string AlbumArtist string TrackNr int // contains filtered or unexported fields }
func FileFromAttrs ¶
func FilesFromAttrs ¶
func PlaylistFileFromAttrs ¶
func PlaylistFilesFromAttrs ¶
func (File) IsFiltered ¶
func (*File) SetIsFiltered ¶
type MpdClient ¶
func (*MpdClient) CurrentSong ¶
func (*MpdClient) GetLibraryPathFromCache ¶
return cursorpos and itemlist from cache
func (*MpdClient) GetPlaylist ¶
func (*MpdClient) GetPlaylists ¶
func (*MpdClient) PlaylistAdd ¶
func (*MpdClient) PlaylistDelete ¶
func (*MpdClient) PlaylistRemove ¶
func (*MpdClient) PlaylistSave ¶
func (*MpdClient) ResetCache ¶
func (mpd *MpdClient) ResetCache()
func (*MpdClient) UpdateLibrary ¶
func (mpd *MpdClient) UpdateLibrary()
type SubsystemEventMsg ¶
type SubsystemEventMsg string
type Track ¶
type Track struct { Title string Artist string AlbumArtist string Duration int Album string Year string TrackNr int Path string Pos int // contains filtered or unexported fields }
func TrackFromAttrs ¶
func TracksFromAttrs ¶
func (Track) IsFiltered ¶
func (*Track) SetIsFiltered ¶
Click to show internal directories.
Click to hide internal directories.