Documentation ¶
Overview ¶
Package tasks contains the bookmark and collection related tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExtractPageTask superbus.Task // ExtractPageTask is the bookmark creation task. DeleteBookmarkTask superbus.Task // DeleteBookmarkTask is the bookmark deletion task. DeleteCollectionTask superbus.Task // DeleteCollectionTask is the collection deletion task. DeleteLabelTask superbus.Task // DeleteLabelTask is the label deletion task. )
Functions ¶
func CleanDomProcessor ¶
CleanDomProcessor is a last pass of cleaning on the resulting DOM node. It removes unwanted attributes, empty tags and set some defaults.
func ExtractPage ¶
func ExtractPage(params ExtractParams)
ExtractPage is the public function that run an extraction synchronously. Caution: it will panic and should only be run insisde another task.
func GetExtractedLinks ¶
func GetExtractedLinks(ctx context.Context) bookmarks.BookmarkLinks
GetExtractedLinks returns the extracted link list previously stored in the extractor context.
Types ¶
type ExtractParams ¶
type ExtractParams struct { BookmarkID int RequestID string Resources []MultipartResource FindMain bool }
ExtractParams contains the extraction parameters.
type LabelDeleteParams ¶
LabelDeleteParams contains the label deletion parameters.
Click to show internal directories.
Click to hide internal directories.