Documentation
¶
Overview ¶
Package subsonic implements the Subsonic/OpenSubsonic streaming API client.
Index ¶
- type Client
- func (c *Client) CoverArtURL(coverArtID string) string
- func (c *Client) GetAlbum(id string) (streaming.Album, []streaming.Track, error)
- func (c *Client) GetAlbums(sortBy string, offset, count int) ([]streaming.Album, error)
- func (c *Client) GetArtists() ([]streaming.Artist, error)
- func (c *Client) Ping() error
- func (c *Client) Search(query string) (streaming.SearchResults, error)
- func (c *Client) StreamURL(trackID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Subsonic API client implementing streaming.Provider.
func NewWithHTTPClient ¶
NewWithHTTPClient creates a new Subsonic client with a custom HTTP client.
func (*Client) CoverArtURL ¶
CoverArtURL returns an authenticated URL for fetching cover art. No HTTP request is made.
func (*Client) GetArtists ¶
GetArtists returns all artists, flattening the indexed structure.
Click to show internal directories.
Click to hide internal directories.