Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(sourceType shared.SourceType, f Factory)
func Sources ¶
func Sources() map[shared.SourceType]ArtworkSource
Types ¶
type ArtworkSource ¶
type ArtworkSource interface {
GetArtworkInfo(ctx context.Context, sourceUrl string) (*dto.FetchedArtwork, error)
MatchesSourceURL(sourceUrl string) (string, bool)
FetchNewArtworks(ctx context.Context, limit int) ([]*dto.FetchedArtwork, error)
PrettyFileName(artwork shared.ArtworkLike, picture shared.PictureLike) string
}
type Factory ¶
type Factory func() ArtworkSource
Click to show internal directories.
Click to hide internal directories.