Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task interface {
// SourceID returns the source ID of the fetcher
SourceID() source.ID
// NormalizedURL returns the normalized URL of the card
NormalizedURL() string
// OriginalURL returns the original URL of the card
OriginalURL() string
// FetchMetadata fetches the metadata from the source
FetchMetadata() (*models.Metadata, error)
// FetchCharacterCard fetches the character card from the source
FetchCharacterCard() (*png.CharacterCard, error)
// FetchAll fetches all the data from the source
FetchAll() (*models.Metadata, *png.CharacterCard, error)
}
Task represents a single fetcher task
Click to show internal directories.
Click to hide internal directories.