linkadd

package
v0.8.27 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 8 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 Options

type Options struct {
	Enrich      bool
	Force       bool
	Summarize   bool
	Model       string
	CLI         string
	Length      string
	Timeout     time.Duration
	Concurrency int
	Logger      *slog.Logger
}

type Result

type Result struct {
	URL           string `json:"url"`
	SourceID      int64  `json:"source_id,omitempty"`
	SourceKey     string `json:"source_key,omitempty"`
	CanonicalURL  string `json:"canonical_url,omitempty"`
	SourceType    string `json:"source_type,omitempty"`
	Domain        string `json:"domain,omitempty"`
	NotePath      string `json:"note_path,omitempty"`
	SourceCreated bool   `json:"source_created"`
	Queued        bool   `json:"queued"`
	Error         string `json:"error,omitempty"`
}

type Stats

type Stats struct {
	Submitted         int                `json:"submitted"`
	Queued            int                `json:"queued"`
	SourcesCreated    int                `json:"sources_created"`
	SourcesExisting   int                `json:"sources_existing"`
	SourcesExtracted  int                `json:"sources_extracted"`
	SourcesSummarized int                `json:"sources_summarized"`
	SourcesRendered   int                `json:"sources_rendered"`
	SourcesUnchanged  int                `json:"sources_unchanged"`
	Errors            int                `json:"errors"`
	Results           []Result           `json:"results"`
	Enrichment        sourceenrich.Stats `json:"enrichment,omitempty"`
}

func Run

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

Jump to

Keyboard shortcuts

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