Documentation
¶
Index ¶
- type Album
- type Artist
- type Client
- func (c *Client) FetchUserID(ctx context.Context) error
- func (c *Client) FindDevice(ctx context.Context) (id string, active bool, err error)
- func (c *Client) GetAlbumTracks(ctx context.Context, albumID string, offset, limit int) ([]Track, bool, error)
- func (c *Client) GetArtistAlbums(ctx context.Context, artistID string, offset, limit int) ([]Album, bool, error)
- func (c *Client) GetPlayerState(ctx context.Context) (*PlayerState, error)
- func (c *Client) GetPlaylistTracks(ctx context.Context, id string, offset, limit int) ([]Track, bool, error)
- func (c *Client) GetPlaylists(ctx context.Context, offset, limit int) (playlists []Playlist, rawCount int, more bool, err error)
- func (c *Client) GetSavedShows(ctx context.Context, offset, limit int) ([]Show, bool, error)
- func (c *Client) GetShowEpisodes(ctx context.Context, showID string, offset, limit int) ([]Episode, bool, error)
- func (c *Client) Next(ctx context.Context, deviceID string) error
- func (c *Client) Pause(ctx context.Context, deviceID string) error
- func (c *Client) Play(ctx context.Context, itemURI, contextURI, deviceID string) error
- func (c *Client) PlayQueue(ctx context.Context, uris []string, deviceID string) error
- func (c *Client) Previous(ctx context.Context, deviceID string) error
- func (c *Client) Resume(ctx context.Context, deviceID string) error
- func (c *Client) SearchAlbums(ctx context.Context, query string, offset, limit int) ([]Album, bool, error)
- func (c *Client) SearchArtists(ctx context.Context, query string, offset, limit int) ([]Artist, bool, error)
- func (c *Client) SearchEpisodes(ctx context.Context, query string, offset, limit int) ([]Episode, bool, error)
- func (c *Client) SearchShows(ctx context.Context, query string, offset, limit int) ([]Show, bool, error)
- func (c *Client) SearchTracks(ctx context.Context, query string, offset, limit int) ([]Track, bool, error)
- func (c *Client) Seek(ctx context.Context, positionMs int, deviceID string) error
- func (c *Client) Shuffle(ctx context.Context, state bool, deviceID string) error
- func (c *Client) Stop(ctx context.Context, deviceID string) error
- func (c *Client) TransferPlayback(ctx context.Context, deviceID string, play bool) error
- type Episode
- type PlayerState
- type Playlist
- type Show
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
PreferredDevice string // if set, FindDevice prefers this device name
// contains filtered or unexported fields
}
func (*Client) FindDevice ¶
FindDevice returns the best device ID and whether it is currently active.
func (*Client) GetAlbumTracks ¶
func (*Client) GetArtistAlbums ¶
func (*Client) GetPlayerState ¶
func (c *Client) GetPlayerState(ctx context.Context) (*PlayerState, error)
func (*Client) GetPlaylistTracks ¶
func (*Client) GetPlaylists ¶
func (c *Client) GetPlaylists(ctx context.Context, offset, limit int) (playlists []Playlist, rawCount int, more bool, err error)
GetPlaylists returns the user's own playlists. The second return value (rawCount) is the unfiltered API page size, which callers must use to advance the offset (since it includes items filtered out by owner matching).
func (*Client) GetSavedShows ¶
func (*Client) GetShowEpisodes ¶
func (*Client) SearchAlbums ¶
func (*Client) SearchArtists ¶
func (*Client) SearchEpisodes ¶
func (*Client) SearchShows ¶
func (*Client) SearchTracks ¶
type PlayerState ¶
Click to show internal directories.
Click to hide internal directories.