Documentation
¶
Index ¶
- Constants
- func GetUpdateMsg(subsystem string) tea.Msg
- func HumanizeTime(s int) string
- type File
- type MpdClient
- func (mpd *MpdClient) Close()
- func (mpd *MpdClient) CurrentSong() Track
- func (mpd *MpdClient) GetLibraryPath(path string) (int, []File)
- 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) Search(term string) ([]Track, error)
- 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 ¶
Types ¶
type File ¶
type File struct {
FileType fileType
Path string
LastModified time.Time
Title string
Artist string
Duration int
Album string
AlbumArtist string
TrackNr int
IsMarked bool
// contains filtered or unexported fields
}
func FileFromAttrs ¶
func FilesFromAttrs ¶
func PlaylistFileFromAttrs ¶
func PlaylistFilesFromAttrs ¶
func (File) GetLastModified ¶ added in v0.0.9
type MpdClient ¶
func (*MpdClient) CurrentSong ¶
func (*MpdClient) GetPlaylist ¶
func (*MpdClient) GetPlaylists ¶
func (*MpdClient) PlaylistAdd ¶
func (*MpdClient) PlaylistDelete ¶
func (*MpdClient) PlaylistRemove ¶
func (*MpdClient) PlaylistSave ¶
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
LastModified time.Time
Album string
Year string
TrackNr int
Path string
Pos int
// contains filtered or unexported fields
}
func TrackFromAttrs ¶
func TracksFromAttrs ¶
func (Track) GetLastModified ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.