task

package
v1.0.77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT Imports: 7 Imported by: 0

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

func New

func New(f fetcher.Fetcher, url, rawCharacterID string) Task

New creates a new Task instance with the given fetcher and appropriate URLs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL