Documentation ¶
Index ¶
- Constants
- func AnimTextTickCmd(id string, t time.Duration) tea.Cmd
- func CleanString(s string) string
- func FetchAlbumsCmd(client *spotify.Client, opts ...spotify.RequestOption) tea.Cmd
- func FetchPlaylistsCmd(client *spotify.Client, opts ...spotify.RequestOption) tea.Cmd
- func FetchShowsCmd(client *spotify.Client, opts ...spotify.RequestOption) tea.Cmd
- func GetAlbumCmd(client *spotify.Client, id spotify.ID) tea.Cmd
- func GetAvailableDevicesCmd(client *spotify.Client) tea.Cmd
- func GetCurrentlyPlayingTrackCmd(client *spotify.Client) tea.Cmd
- func GetPlaylistCmd(client *spotify.Client, id spotify.ID) tea.Cmd
- func GetShowCmd(client *spotify.Client, id spotify.ID) tea.Cmd
- func LoadMoreCmd() tea.Cmd
- func NewTokenExpiredError() error
- func NextPlaybackCmd(client *spotify.Client) tea.Cmd
- func Normalize(s string) string
- func PadOrTruncate(s string, n int) string
- func PausePlaybackCmd(client *spotify.Client) tea.Cmd
- func PreviousPlaybackCmd(client *spotify.Client) tea.Cmd
- func RemoveZeroWidthSpace(s string) string
- func StartPlaybackCmd(client *spotify.Client, opts *spotify.PlayOptions) tea.Cmd
- func UpdateDepthCmd(d int) tea.Cmd
- func WrapText(s string, width int, line int) string
- type AlbumDetailMsg
- type AlbumMsg
- type AnimTextModel
- type AnimTextModelOpt
- type AuthMsg
- type BarConfig
- type BarModel
- type CurrentlyPlayingMsg
- type ErrMsg
- type HelpModel
- type KeyMap
- type ListModel
- type ListModelOpt
- type LoadMoreMsg
- type PlaybackMsg
- type PlayerDevicesMsg
- type PlaylistDetailMsg
- type PlaylistMsg
- type ShowDetailMsg
- type ShowMsg
- type TabModel
- type TextModel
- type TokenExpiredError
- type UpdateDepthMsg
Constants ¶
View Source
const ( PLAYLIST = iota ALBUM PODCAST )
Tab
View Source
const ( TOP = iota TRACKLIST )
Screen Mode
View Source
const ( NONE = iota INPUT ERROR )
Text Input Mode
View Source
const ( // ZWSP represents zero-width space. ZWSP = '\u200B' // ZWNBSP represents zero-width no-break space. ZWNBSP = '\uFEFF' // ZWJ represents zero-width joiner. ZWJ = '\u200D' // ZWNJ represents zero-width non-joiner. ZWNJ = '\u200C' )
Variables ¶
This section is empty.
Functions ¶
func CleanString ¶
func FetchAlbumsCmd ¶
func FetchPlaylistsCmd ¶
func FetchShowsCmd ¶
func GetAlbumCmd ¶
func GetAvailableDevicesCmd ¶ added in v0.1.2
func GetPlaylistCmd ¶
func GetShowCmd ¶
func LoadMoreCmd ¶
func NewTokenExpiredError ¶
func NewTokenExpiredError() error
func NextPlaybackCmd ¶
func PadOrTruncate ¶
func PausePlaybackCmd ¶
func PreviousPlaybackCmd ¶
func RemoveZeroWidthSpace ¶
func StartPlaybackCmd ¶
func UpdateDepthCmd ¶
Types ¶
type AlbumDetailMsg ¶
type AlbumDetailMsg struct {
Album *spotify.FullAlbum
}
type AnimTextModel ¶
type AnimTextModel struct {
// contains filtered or unexported fields
}
func NewAnimText ¶
func NewAnimText(t string, id string, opts ...AnimTextModelOpt) AnimTextModel
func (AnimTextModel) UpdateAnimText ¶
func (m AnimTextModel) UpdateAnimText(msg tea.Msg) (AnimTextModel, tea.Cmd)
func (AnimTextModel) ViewAnimText ¶
func (m AnimTextModel) ViewAnimText() string
type AnimTextModelOpt ¶
type AnimTextModelOpt func(*AnimTextModel)
func WithWidth ¶
func WithWidth(w int) AnimTextModelOpt
type BarModel ¶
type BarModel struct { IsPlaying bool // contains filtered or unexported fields }
func NewBarModel ¶
func (BarModel) PositionMs ¶ added in v0.1.2
type CurrentlyPlayingMsg ¶
type CurrentlyPlayingMsg struct {
Track *spotify.CurrentlyPlaying
}
type ListModel ¶
type ListModel struct { Fetching bool // contains filtered or unexported fields }
func NewListModel ¶
func NewListModel(items []list.Item, opts ...ListModelOpt) ListModel
func (ListModel) UpdateList ¶
type ListModelOpt ¶
type ListModelOpt func(*ListModel)
func WithTitle ¶
func WithTitle(title string) ListModelOpt
type LoadMoreMsg ¶
type LoadMoreMsg struct{}
type PlaybackMsg ¶
type PlaybackMsg struct { }
type PlayerDevicesMsg ¶ added in v0.1.2
type PlayerDevicesMsg struct {
PlayerDevices []spotify.PlayerDevice
}
type PlaylistDetailMsg ¶
type PlaylistDetailMsg struct {
Playlist *spotify.FullPlaylist
}
type PlaylistMsg ¶
type PlaylistMsg struct {
Playlists *spotify.SimplePlaylistPage
}
type ShowDetailMsg ¶
type ShowDetailMsg struct {
Show *spotify.FullShow
}
type TabModel ¶
type TabModel struct {
// contains filtered or unexported fields
}
func NewTabModel ¶
func NewTabModel() TabModel
type TextModel ¶
type TextModel struct {
// contains filtered or unexported fields
}
func NewTextModel ¶
func NewTextModel() TextModel
type TokenExpiredError ¶
type TokenExpiredError struct {
Message string
}
func (TokenExpiredError) Error ¶
func (e TokenExpiredError) Error() string
type UpdateDepthMsg ¶
type UpdateDepthMsg struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.