Documentation ¶
Index ¶
- func FormatSong(current *spotify.CurrentlyPlaying) string
- func PrintDevices(devices []spotify.PlayerDevice) error
- type Commands
- func (c *Commands) ActiveDeviceExists(ctx *gctx.Context) bool
- func (c *Commands) AlbumTracks(ctx *gctx.Context, album spotify.ID, page int) (*spotify.SimpleTrackPage, error)
- func (c *Commands) ArtistAlbums(ctx *gctx.Context, artist spotify.ID, page int) (*spotify.SimpleAlbumPage, error)
- func (c *Commands) ChangeVolume(ctx *gctx.Context, vol int) error
- func (c *Commands) ClearRadio(ctx *gctx.Context) error
- func (c *Commands) Client() *spotify.Client
- func (c *Commands) CreateRadioPlaylist(ctx *gctx.Context, name string) (*spotify.FullPlaylist, *sql.DB, error)
- func (c *Commands) Devices(ctx *gctx.Context) error
- func (c *Commands) FormatState(state *spotify.PlayerState) (string, error)
- func (c *Commands) GetQueue(ctx *gctx.Context) (*spotify.Queue, error)
- func (c *Commands) GetRadioPlaylist(ctx *gctx.Context, name string) (*spotify.FullPlaylist, *sql.DB, error)
- func (c *Commands) Like(ctx *gctx.Context) error
- func (c *Commands) Link(ctx *gctx.Context) (string, error)
- func (c *Commands) LinkContext(ctx *gctx.Context) (string, error)
- func (c *Commands) Next(ctx *gctx.Context, amt int) error
- func (c *Commands) NowPlaying(ctx *gctx.Context) error
- func (c *Commands) Pause(ctx *gctx.Context) error
- func (c *Commands) Play(ctx *gctx.Context) error
- func (c *Commands) PlayLikedSongs(ctx *gctx.Context, position int) error
- func (c *Commands) PlaySongInPlaylist(ctx *gctx.Context, context *spotify.URI, offset int) error
- func (c *Commands) PlayUrl(ctx *gctx.Context, args []string) error
- func (c *Commands) PlaylistTracks(ctx *gctx.Context, playlist spotify.ID, page int) (*spotify.PlaylistTrackPage, error)
- func (c *Commands) Playlists(ctx *gctx.Context, page int) (*spotify.SimplePlaylistPage, error)
- func (c *Commands) Previous(ctx *gctx.Context) error
- func (c *Commands) PrintPlaying(current *spotify.CurrentlyPlaying) error
- func (c *Commands) QueueSong(ctx *gctx.Context, id spotify.ID) error
- func (c *Commands) Radio(ctx *gctx.Context) error
- func (c *Commands) RadioFromAlbum(ctx *gctx.Context, album spotify.SimpleAlbum) error
- func (c *Commands) RadioFromPlaylist(ctx *gctx.Context, playlist spotify.SimplePlaylist) error
- func (c *Commands) RadioFromSavedTracks(ctx *gctx.Context) error
- func (c *Commands) RadioGivenArtist(ctx *gctx.Context, artist spotify.SimpleArtist) error
- func (c *Commands) RadioGivenList(ctx *gctx.Context, song_ids []spotify.ID, name string) error
- func (c *Commands) RadioGivenSong(ctx *gctx.Context, song spotify.SimpleTrack, pos int) error
- func (c *Commands) RefillRadio(ctx *gctx.Context) error
- func (c *Commands) Repeat(ctx *gctx.Context) error
- func (c *Commands) Search(ctx *gctx.Context, search string, page int) (*spotify.SearchResult, error)
- func (c *Commands) Seek(ctx *gctx.Context, fwd bool) error
- func (c *Commands) SetDevice(ctx *gctx.Context, device spotify.PlayerDevice) error
- func (c *Commands) SetPosition(ctx *gctx.Context, pos int) error
- func (c *Commands) SetVolume(ctx *gctx.Context, vol int) error
- func (c *Commands) Shuffle(ctx *gctx.Context) error
- func (c *Commands) SongExists(db *sql.DB, song spotify.ID) (bool, error)
- func (c *Commands) Status(ctx *gctx.Context) error
- func (c *Commands) TogglePlay(ctx *gctx.Context) error
- func (c *Commands) TrackList(ctx *gctx.Context, page int) (*spotify.SavedTrackPage, error)
- func (c *Commands) Unlike(ctx *gctx.Context) error
- func (c *Commands) User() string
- func (c *Commands) UserAlbums(ctx *gctx.Context, page int) (*spotify.SavedAlbumPage, error)
- func (c *Commands) UserArtists(ctx *gctx.Context, page int) (*spotify.FullArtistCursorPage, error)
- func (c *Commands) YoutubeLink(ctx *gctx.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSong ¶
func FormatSong(current *spotify.CurrentlyPlaying) string
func PrintDevices ¶
func PrintDevices(devices []spotify.PlayerDevice) error
Types ¶
type Commands ¶
func (*Commands) AlbumTracks ¶
func (*Commands) ArtistAlbums ¶
func (*Commands) CreateRadioPlaylist ¶
func (*Commands) FormatState ¶
func (*Commands) GetRadioPlaylist ¶
func (*Commands) PlayLikedSongs ¶
func (*Commands) PlaySongInPlaylist ¶
func (*Commands) PlaylistTracks ¶
func (*Commands) PrintPlaying ¶
func (*Commands) RadioFromAlbum ¶
func (*Commands) RadioFromPlaylist ¶
func (*Commands) RadioFromSavedTracks ¶
func (*Commands) RadioGivenArtist ¶
func (*Commands) RadioGivenList ¶
func (*Commands) RadioGivenSong ¶
func (*Commands) SongExists ¶
func (*Commands) UserAlbums ¶
func (*Commands) UserArtists ¶
Click to show internal directories.
Click to hide internal directories.