syncjob

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleNotesStage

type AppleNotesStage struct {
	Duration time.Duration    `json:"duration"`
	Stats    applenotes.Stats `json:"stats"`
}

type CategorizeStage

type CategorizeStage struct {
	Duration    time.Duration        `json:"duration"`
	Stats       itemcategorize.Stats `json:"stats"`
	ItemStats   itemcategorize.Stats `json:"item_stats"`
	SourceStats itemcategorize.Stats `json:"source_stats"`
}

type FeedsStage added in v0.1.6

type FeedsStage struct {
	Duration time.Duration    `json:"duration"`
	Stats    feedimport.Stats `json:"stats"`
}

type GitHubStage

type GitHubStage struct {
	Duration time.Duration      `json:"duration"`
	Stats    githubimport.Stats `json:"stats"`
}

type LinksStage

type LinksStage struct {
	Duration time.Duration     `json:"duration"`
	Stats    linkextract.Stats `json:"stats"`
}

type MediaArchiveStage

type MediaArchiveStage struct {
	Duration time.Duration      `json:"duration"`
	Stats    mediaarchive.Stats `json:"stats"`
}

type Options

type Options struct {
	XBookmarksEnabled bool
	XBookmarksLimit   int

	XEnabled         bool
	XLimit           int
	XConcurrency     int
	XTimeout         time.Duration
	XMediaTimeout    time.Duration
	XMediaEnabled    bool
	XMediaLimit      int
	XPhotoOCREnabled bool
	XPhotoOCRLimit   int

	LinksEnabled      bool
	LinkDiscoverLimit int
	LinkLimit         int
	LinkConcurrency   int

	GitHubEnabled bool
	GitHubLimit   int

	YouTubeEnabled bool
	YouTubeLimit   int
	WatchLater     bool
	Liked          bool

	AppleNotesEnabled            bool
	AppleNotesDBPath             string
	AppleNotesLimit              int
	AppleNotesExcludeFolders     []string
	AppleNotesExcludeAccounts    []string
	AppleNotesExcludeShared      bool
	AppleNotesIncludeLocked      bool
	AppleNotesSkipAttachments    bool
	AppleNotesSkipAttachmentOCR  bool
	AppleNotesAttachmentMaxBytes int64
	AppleNotesTesseractBinary    string

	SafariTabsEnabled   bool
	SafariTabsDBPath    string
	SafariTabsDevice    string
	SafariTabsLimit     int
	SafariTabsOlderThan time.Duration

	FeedsEnabled bool
	FeedLimit    int

	SourcesEnabled      bool
	SourceLimit         int
	SourceConcurrency   int
	SourceWatch         bool
	SourcePollInterval  time.Duration
	SourceIdleExitAfter time.Duration
	SourceMaxCycles     int

	Browser               string
	Profile               string
	Force                 bool
	Summarize             bool
	Model                 string
	OCRModel              string
	ArchiveMediaEnabled   bool
	ArchiveMediaLimit     int
	ArchiveProvider       string
	ArchiveBucket         string
	ArchivePublicBaseURL  string
	ArchiveEndpoint       string
	ArchiveRegion         string
	ArchiveAccessKeyID    string
	ArchiveSecretKey      string
	ArchiveSessionToken   string
	CategorizeEnabled     bool
	CategorizeLimit       int
	CategorizeConcurrency int
	CategorizeModel       string
	CategorizeTimeout     time.Duration
	CategorizeImages      bool
	CLI                   string
	Length                string
	Timeout               time.Duration
	Logger                *slog.Logger
	Progress              io.Writer
}

type SafariTabsStage

type SafariTabsStage struct {
	Duration time.Duration    `json:"duration"`
	Stats    safaritabs.Stats `json:"stats"`
}

type SourcesStage

type SourcesStage struct {
	Duration time.Duration      `json:"duration"`
	Stats    worker.SourceStats `json:"stats"`
}

type Stats

type Stats struct {
	StartedAt    time.Time          `json:"started_at"`
	CompletedAt  time.Time          `json:"completed_at,omitempty"`
	Duration     time.Duration      `json:"duration"`
	XBookmarks   *XBookmarksStage   `json:"x_bookmarks,omitempty"`
	X            *XStage            `json:"x,omitempty"`
	XMedia       *XMediaStage       `json:"x_media,omitempty"`
	XPhotoOCR    *XPhotoOCRStage    `json:"x_photo_ocr,omitempty"`
	Links        *LinksStage        `json:"links,omitempty"`
	GitHub       *GitHubStage       `json:"github,omitempty"`
	YouTube      *YouTubeStage      `json:"youtube,omitempty"`
	AppleNotes   *AppleNotesStage   `json:"apple_notes,omitempty"`
	SafariTabs   *SafariTabsStage   `json:"safari_tabs,omitempty"`
	Feeds        *FeedsStage        `json:"feeds,omitempty"`
	Sources      *SourcesStage      `json:"sources,omitempty"`
	MediaArchive *MediaArchiveStage `json:"media_archive,omitempty"`
	Categorize   *CategorizeStage   `json:"categorize,omitempty"`
}

func Run

func Run(ctx context.Context, cfg config.Config, st *store.Store, opts Options) (Stats, error)

type XBookmarksStage

type XBookmarksStage struct {
	Duration time.Duration      `json:"duration"`
	Stats    xapi.BookmarkStats `json:"stats"`
}

type XMediaStage

type XMediaStage struct {
	Duration time.Duration          `json:"duration"`
	Stats    xmediatranscribe.Stats `json:"stats"`
}

type XPhotoOCRStage

type XPhotoOCRStage struct {
	Duration time.Duration   `json:"duration"`
	Stats    xphotoocr.Stats `json:"stats"`
}

type XStage

type XStage struct {
	Duration time.Duration `json:"duration"`
	Stats    xapi.Stats    `json:"stats"`
}

type YouTubeStage

type YouTubeStage struct {
	Duration time.Duration       `json:"duration"`
	Stats    youtubeimport.Stats `json:"stats"`
}

Jump to

Keyboard shortcuts

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