Documentation ¶
Index ¶
- Constants
- Variables
- func AlbumTracksView(ctx *gctx.Context, album spotify.ID, commands *commands.Commands) ([]list.Item, error)
- func AlbumsView(ctx *gctx.Context, commands *commands.Commands) ([]list.Item, error)
- func ArtistAlbumsView(ctx *gctx.Context, album spotify.ID, commands *commands.Commands) ([]list.Item, error)
- func ArtistsView(ctx *gctx.Context, commands *commands.Commands) ([]list.Item, error)
- func DeviceView(ctx *gctx.Context, commands *commands.Commands) ([]list.Item, error)
- func HandleAlbumArtist(ctx *gctx.Context, commands *commands.Commands, artist spotify.SimpleArtist)
- func HandleAlbumRadio(ctx *gctx.Context, commands *commands.Commands, album spotify.SimpleAlbum)
- func HandleArtistRadio(ctx *gctx.Context, commands *commands.Commands, artist spotify.SimpleArtist)
- func HandleLibraryRadio(ctx *gctx.Context, commands *commands.Commands)
- func HandlePlayLikedSong(ctx *gctx.Context, commands *commands.Commands, position int)
- func HandlePlayTrack(ctx *gctx.Context, commands *commands.Commands, track spotify.ID)
- func HandlePlayWithContext(ctx *gctx.Context, commands *commands.Commands, uri *spotify.URI, pos int)
- func HandlePlaylistRadio(ctx *gctx.Context, commands *commands.Commands, ...)
- func HandleRadio(ctx *gctx.Context, commands *commands.Commands, song spotify.SimpleTrack)
- func HandleSeek(ctx *gctx.Context, commands *commands.Commands, fwd bool)
- func HandleSetDevice(ctx *gctx.Context, commands *commands.Commands, player spotify.PlayerDevice)
- func HandleVolume(ctx *gctx.Context, commands *commands.Commands, up bool)
- func InitMain(ctx *gctx.Context, c *commands.Commands, mode Mode) (tea.Model, error)
- func MainView(ctx *gctx.Context, commands *commands.Commands) ([]list.Item, error)
- func PlaylistView(ctx *gctx.Context, commands *commands.Commands, ...) ([]list.Item, error)
- func SavedTracksView(ctx *gctx.Context, commands *commands.Commands) ([]list.Item, error)
- func SearchAlbumsView(ctx *gctx.Context, commands *commands.Commands, ...) ([]list.Item, error)
- func SearchArtistsView(ctx *gctx.Context, commands *commands.Commands, ...) ([]list.Item, error)
- func SearchPlaylistsView(ctx *gctx.Context, commands *commands.Commands, ...) ([]list.Item, error)
- func SearchTracksView(ctx *gctx.Context, commands *commands.Commands, tracks *spotify.FullTrackPage) ([]list.Item, error)
- func StartTea(ctx *gctx.Context, cmd *commands.Commands, mode string) error
- func Tick() tea.Cmd
- type Mode
- type SearchResults
- type SpotifyUrl
Constants ¶
View Source
const ( Album Mode = "album" ArtistAlbum = "artistalbum" Artist = "artist" Artists = "artists" Tracks = "tracks" Albums = "albums" Main = "main" Playlists = "playlists" Playlist = "playlist" Devices = "devices" Search = "search" SearchAlbums = "searchalbums" SearchAlbum = "searchalbum" SearchArtists = "searchartists" SearchArtist = "searchartist" SearchArtistAlbum = "searchartistalbum" SearchTracks = "searchtracks" SearchPlaylists = "searchplaylsits" SearchPlaylist = "searchplaylist" )
Variables ¶
Functions ¶
func AlbumTracksView ¶
func AlbumsView ¶
func ArtistAlbumsView ¶
func ArtistsView ¶
func DeviceView ¶
func HandleAlbumArtist ¶
func HandleAlbumRadio ¶
func HandleArtistRadio ¶
func HandlePlayLikedSong ¶
func HandlePlayTrack ¶
func HandlePlayWithContext ¶
func HandlePlaylistRadio ¶
func HandleRadio ¶
func HandleSetDevice ¶
func PlaylistView ¶
func SavedTracksView ¶
func SearchAlbumsView ¶
func SearchArtistsView ¶
func SearchPlaylistsView ¶
func SearchTracksView ¶
Types ¶
type SearchResults ¶
type SearchResults struct { Tracks *spotify.FullTrackPage Artists *spotify.FullArtistPage Playlists *spotify.SimplePlaylistPage Albums *spotify.SimpleAlbumPage }
type SpotifyUrl ¶
Click to show internal directories.
Click to hide internal directories.