Documentation
¶
Index ¶
- Variables
- func By(ctx context.Context, relType db.RelationType, relation string, workers int, ...) error
- func CommitQueue(ctx context.Context, q *db.Queue, println LogFunc, workers int, tries uint64, ...) error
- func Ping() error
- func UserAgent(str string)
- type LogFunc
- type ProgressInteraction
- type ProgressRepresentation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoContentScript = errors.New("script element with chapter content not found") ErrNoChapterTitle = errors.New("no chapter-title element") ErrNoChapterDetails = errors.New("no chapter-details element") ErrBadContentScript = errors.New("malformed script element with chapter content") ErrBadChapterTitle = errors.New("malformed chapter-title element") ErrBadChapterDetails = errors.New("malformed chapter-details element") )
View Source
var ( ErrServer = errors.New("server returned error page") ErrRateLimit = errors.New("server returned rate-limiting page") )
View Source
var ( ErrInvalidPath = errors.New("invalid path in tag list") ErrNoTagList = errors.New("tag list not found") ErrBadTagList = errors.New("malformed tag list") ErrNoPaginator = errors.New("paginator not found") ErrBadPaginator = errors.New("malformed paginator") )
View Source
var ( ErrNoImageLists = errors.New("element with id image-lists not found") ErrBadImageLists = errors.New("malformed element with id image-lists") )
View Source
var ( ErrNoURL = errors.New("element holding relation URL not found") ErrNoChapterList = errors.New("element with class chapter-list not found") ErrNoTagTitle = errors.New("element with class tag-title not found") ErrNoImage = errors.New("element with class image not found") ErrBadURL = errors.New("malformed element holding relation URL") ErrBadChapterList = errors.New("malformed element with class chapter-list") ErrBadTagTitle = errors.New("malformed element with class tag-title") ErrBadCoverChapter = errors.New("malformed element with class cover-chapters") ErrBadTagTags = errors.New("malformed element with class tag-tags") ErrBadAliases = errors.New("malformed element with class aliases") ErrBadImage = errors.New("malformed element with class image") ErrBadDescription = errors.New("malformed element with class description") ErrBadThumbnail = errors.New("malformed element with class thumbnail") )
View Source
var Verbose bool
Functions ¶
func By ¶
func By(ctx context.Context, relType db.RelationType, relation string, workers int, tries uint64, update, force, skip bool, q *db.Queue, s *db.Instance, progress ProgressInteraction) error
By recursively fetches content by a relation
Types ¶
type ProgressInteraction ¶
type ProgressInteraction interface { NewRepresentation(total int, desc string) ProgressRepresentation Print(msg string) }
Click to show internal directories.
Click to hide internal directories.