orgscan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

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