Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookmarkOptions ¶
type BookmarkOptions struct {
Browser string
Profile string
Limit int
PageSize int
MaxPages int
Timeout time.Duration
// MediaHTTPPolicy is primarily useful to callers that need to inject a
// constrained test policy. Normal imports use the downloader's safe policy.
MediaHTTPPolicy *safehttp.Policy
}
type BookmarkStats ¶
type BookmarkStats struct {
PagesFetched int `json:"pages_fetched"`
Seen int `json:"seen"`
Processed int `json:"processed"`
Skipped int `json:"skipped"` // total skipped entries; typed skip counters below are subsets
SkippedBlocked int `json:"skipped_blocked"`
SkippedNotFound int `json:"skipped_not_found"`
SkippedUnsupported int `json:"skipped_unsupported"`
SkippedMalformed int `json:"skipped_malformed"`
Created int `json:"created"`
Updated int `json:"updated"`
Unchanged int `json:"unchanged"`
Rendered int `json:"rendered"`
MediaDiscovered int `json:"media_discovered"`
MediaLinked int `json:"media_linked"`
MediaDownloaded int `json:"media_downloaded"`
MediaGone int `json:"media_gone"`
MediaErrors int `json:"media_errors"`
MediaBlocked int `json:"media_blocked"`
QuoteLinked int `json:"quote_linked"`
QuoteSkipped int `json:"quote_skipped"`
QuoteSkippedBlocked int `json:"quote_skipped_blocked"`
QuoteSkippedNotFound int `json:"quote_skipped_not_found"`
QuoteSkippedDetached int `json:"quote_skipped_detached"`
QuoteSkippedUnsupported int `json:"quote_skipped_unsupported"`
QuoteSkippedMalformed int `json:"quote_skipped_malformed"`
StoppedReason string `json:"stopped_reason"`
}
func RunBookmarks ¶
func RunBookmarks(ctx context.Context, cfg config.Config, st *store.Store, opts BookmarkOptions) (BookmarkStats, error)
Click to show internal directories.
Click to hide internal directories.