orgscan

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: AGPL-3.0 Imports: 14 Imported by: ? 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

Overview

Package orgscan wires up the full scanner+indexer stack against a live GitHub org and collects graph statistics in a single pass. Used by the --benchmark --org flag to produce the "Org Scan Stats" section of benchmark/RESULTS.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrgStats

type OrgStats struct {
	Org          string
	ScanDuration time.Duration
	Repos        int
	EntityTotal  int64
	EntityByType []TypeCount
	RelTotal     int64
	RelByConf    []TypeCount
}

OrgStats holds the graph statistics collected after a full org scan.

func Run

func Run(ctx context.Context, org, token string) (*OrgStats, error)

Run scans org with the given GitHub token, stores the graph in a temp SQLite file, collects stats, and cleans up. ctx is forwarded to the scanner; set a sensible deadline (e.g. 30 min) on the caller's context.

type TypeCount

type TypeCount struct {
	Label string
	Count int64
}

TypeCount is a label+count pair used in breakdown tables.

Jump to

Keyboard shortcuts

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