Documentation ¶
Index ¶
- Constants
- Variables
- func Register(name string, init Constructor)
- type Agents
- func (a *Agents) AgentName() string
- func (a *Agents) GetAlbumInfo(ctx context.Context, name, artist, mbid string) (*AlbumInfo, error)
- func (a *Agents) GetArtistBiography(ctx context.Context, id, name, mbid string) (string, error)
- func (a *Agents) GetArtistImages(ctx context.Context, id, name, mbid string) ([]ExternalImage, error)
- func (a *Agents) GetArtistMBID(ctx context.Context, id string, name string) (string, error)
- func (a *Agents) GetArtistTopSongs(ctx context.Context, id, artistName, mbid string, count int) ([]Song, error)
- func (a *Agents) GetArtistURL(ctx context.Context, id, name, mbid string) (string, error)
- func (a *Agents) GetSimilarArtists(ctx context.Context, id, name, mbid string, limit int) ([]Artist, error)
- type AlbumInfo
- type AlbumInfoRetriever
- type Artist
- type ArtistBiographyRetriever
- type ArtistImageRetriever
- type ArtistMBIDRetriever
- type ArtistSimilarRetriever
- type ArtistTopSongsRetriever
- type ArtistURLRetriever
- type Constructor
- type ExternalImage
- type Interface
- type SessionKeys
- type Song
Constants ¶
View Source
const LocalAgentName = "local"
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
View Source
var Map map[string]Constructor
Functions ¶
func Register ¶
func Register(name string, init Constructor)
Types ¶
type Agents ¶ added in v0.44.0
type Agents struct {
// contains filtered or unexported fields
}
func (*Agents) GetAlbumInfo ¶ added in v0.49.0
func (*Agents) GetArtistBiography ¶ added in v0.49.0
func (*Agents) GetArtistImages ¶ added in v0.49.0
func (*Agents) GetArtistMBID ¶ added in v0.49.0
func (*Agents) GetArtistTopSongs ¶ added in v0.49.0
func (*Agents) GetArtistURL ¶ added in v0.49.0
type AlbumInfo ¶ added in v0.49.0
type AlbumInfo struct { Name string MBID string Description string URL string Images []ExternalImage }
type AlbumInfoRetriever ¶ added in v0.49.0
type AlbumInfoRetriever interface {
GetAlbumInfo(ctx context.Context, name, artist, mbid string) (*AlbumInfo, error)
}
TODO Break up this interface in more specific methods, like artists
type ArtistImageRetriever ¶
type ArtistImageRetriever interface {
GetArtistImages(ctx context.Context, id, name, mbid string) ([]ExternalImage, error)
}
type ArtistMBIDRetriever ¶
type ArtistSimilarRetriever ¶
type ArtistTopSongsRetriever ¶
type ArtistURLRetriever ¶
type Constructor ¶
type ExternalImage ¶ added in v0.49.0
Click to show internal directories.
Click to hide internal directories.