githubimport

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 27 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

func NewAuditInventory added in v0.7.0

func NewAuditInventory(rootDir, userAgent string) audit.UpstreamInventory

NewAuditInventory returns a read-only, fixed-origin GitHub Stars inventory. Credential resolution remains lazy so standard audits do not touch secrets.

Types

type Options

type Options struct {
	Limit     int
	Force     bool
	Summarize bool
	Model     string
	CLI       string
	Length    string
	Timeout   time.Duration
	Logger    *slog.Logger
	Token     string
	APIBase   string
	Binary    string
	UserAgent string
}

type Stats

type Stats struct {
	Viewer             string `json:"viewer"`
	PagesFetched       int    `json:"pages_fetched"`
	StarsProcessed     int    `json:"stars_processed"`
	ItemsCreated       int    `json:"items_created"`
	ItemsUpdated       int    `json:"items_updated"`
	ItemsUnchanged     int    `json:"items_unchanged"`
	ItemsRendered      int    `json:"items_rendered"`
	SourcesCreated     int    `json:"sources_created"`
	LinksCreated       int    `json:"links_created"`
	SourcesQueued      int    `json:"sources_queued"`
	SourcesExtracted   int    `json:"sources_extracted"`
	SourcesSummarized  int    `json:"sources_summarized"`
	SourcesRendered    int    `json:"sources_rendered"`
	SourcesUnchanged   int    `json:"sources_unchanged"`
	HomepageDiscovered int    `json:"homepage_discovered"`
	Errors             int    `json:"errors"`
}

func Run

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

Jump to

Keyboard shortcuts

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