Versions in this module Expand all Collapse all v0 v0.0.6 Dec 22, 2023 v0.0.5 Dec 22, 2023 Changes in this version type MpdClient + func (mpd *MpdClient) Seek(pos, sec int) v0.0.4 Aug 17, 2023 v0.0.3 Aug 17, 2023 v0.0.2 Aug 16, 2023 Changes in this version + const DirectoryType + const FileType + const PlaylistType + func GetUpdateMsg(subsystem string) tea.Msg + func HumanizeTime(s int) string + func SetCacheCursorPath(path string, cursorPos int) + type File struct + Album string + AlbumArtist string + Artist string + Duration int + FileType fileType + Path string + Title string + TrackNr int + func FileFromAttrs(info mpd.Attrs) File + func FilesFromAttrs(infos []mpd.Attrs) []File + func PlaylistFileFromAttrs(info mpd.Attrs) File + func PlaylistFilesFromAttrs(infos []mpd.Attrs) []File + func (t *File) SetIsFiltered(b bool) + func (t File) Group() string + func (t File) Id() int + func (t File) IsFiltered() bool + func (t File) Length() int + func (t File) Text() string + type MpdClient struct + func GetClient(mpdHost string, mpdPort string, mpdPassword string) *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) Status() MpdStatus + func (mpd *MpdClient) UpdateLibrary() + type MpdStatus struct + Elapsed int + PlaylistLength int + Song int + State State + type State int + const PausedState + const PlayingState + const StoppedState + func (s State) GetStateSymbol() string + type SubsystemEventMsg string + type Track struct + Album string + AlbumArtist string + Artist string + Duration int + Path string + Pos int + Title string + TrackNr int + Year string + func TrackFromAttrs(info mpd.Attrs) Track + func TracksFromAttrs(infos []mpd.Attrs) []Track + func (t *Track) SetIsFiltered(b bool) + func (t Track) Group() string + func (t Track) Id() int + func (t Track) IsFiltered() bool + func (t Track) Length() int + func (t Track) Text() string