Documentation
¶
Overview ¶
package imagesrc defines interfaces for album and artist image providers
Index ¶
- func GetAlbumImage(ctx context.Context, opts AlbumImageOpts) (string, error)
- func GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error)
- func Initialize(opts ImageSourceOpts)
- func Shutdown()
- type AlbumImageOpts
- type ArtistImageOpts
- type DeezerAlbum
- type DeezerAlbumResponse
- type DeezerArtist
- type DeezerArtistResponse
- type DeezerClient
- type ErrorFinder
- type ImageSource
- type ImageSourceOpts
- type MockFinder
- type SubsonicAlbumResponse
- type SubsonicArtistResponse
- type SubsonicClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAlbumImage ¶
func GetAlbumImage(ctx context.Context, opts AlbumImageOpts) (string, error)
func GetArtistImage ¶
func GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error)
func Initialize ¶
func Initialize(opts ImageSourceOpts)
all functions are no-op if no providers are enabled
Types ¶
type AlbumImageOpts ¶
type ArtistImageOpts ¶
type ArtistImageOpts struct {
Aliases []string
}
type DeezerAlbum ¶
type DeezerAlbumResponse ¶
type DeezerAlbumResponse struct {
Data []DeezerAlbum `json:"data"`
}
type DeezerArtist ¶
type DeezerArtistResponse ¶
type DeezerArtistResponse struct {
Data []DeezerArtist `json:"data"`
}
type DeezerClient ¶
type DeezerClient struct {
// contains filtered or unexported fields
}
func NewDeezerClient ¶
func NewDeezerClient() *DeezerClient
func (*DeezerClient) GetAlbumImages ¶
func (*DeezerClient) GetArtistImages ¶
func (*DeezerClient) Shutdown ¶
func (c *DeezerClient) Shutdown()
type ErrorFinder ¶
type ErrorFinder struct{}
func (*ErrorFinder) GetAlbumImage ¶
func (m *ErrorFinder) GetAlbumImage(ctx context.Context, opts AlbumImageOpts) (string, error)
func (*ErrorFinder) GetArtistImage ¶
func (m *ErrorFinder) GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error)
func (*ErrorFinder) Shutdown ¶
func (m *ErrorFinder) Shutdown()
type ImageSource ¶
type ImageSource struct {
// contains filtered or unexported fields
}
type ImageSourceOpts ¶
type MockFinder ¶
type MockFinder struct{}
func (*MockFinder) GetAlbumImage ¶
func (m *MockFinder) GetAlbumImage(ctx context.Context, opts AlbumImageOpts) (string, error)
func (*MockFinder) GetArtistImage ¶
func (m *MockFinder) GetArtistImage(ctx context.Context, opts ArtistImageOpts) (string, error)
func (*MockFinder) Shutdown ¶
func (m *MockFinder) Shutdown()
type SubsonicAlbumResponse ¶ added in v0.0.14
type SubsonicArtistResponse ¶ added in v0.0.14
type SubsonicClient ¶ added in v0.0.14
type SubsonicClient struct {
// contains filtered or unexported fields
}
func NewSubsonicClient ¶ added in v0.0.14
func NewSubsonicClient() *SubsonicClient
func (*SubsonicClient) GetAlbumImage ¶ added in v0.0.14
func (*SubsonicClient) GetArtistImage ¶ added in v0.0.14
Click to show internal directories.
Click to hide internal directories.