Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
stats-gh
command
Command stats-gh is the CLI entry point that loads configuration, wires up the GitHub client, and dispatches to the requested subcommand (generate / diagnose / version).
|
Command stats-gh is the CLI entry point that loads configuration, wires up the GitHub client, and dispatches to the requested subcommand (generate / diagnose / version). |
|
stats-gh-readme-cache
command
Command stats-gh-readme-cache updates profile README image URLs with a cache key so GitHub refreshes generated SVG assets.
|
Command stats-gh-readme-cache updates profile README image URLs with a cache key so GitHub refreshes generated SVG assets. |
|
internal
|
|
|
app
Package app is the stats-gh control plane: it parses the requested subcommand and dispatches to the collector + renderer or to the diagnostics formatter.
|
Package app is the stats-gh control plane: it parses the requested subcommand and dispatches to the collector + renderer or to the diagnostics formatter. |
|
collector
Package collector aggregates GitHub-sourced repository data into the rendered StatsSummary and diagnostics report, applying repo-exclusion and recency-weighting rules along the way.
|
Package collector aggregates GitHub-sourced repository data into the rendered StatsSummary and diagnostics report, applying repo-exclusion and recency-weighting rules along the way. |
|
config
Package config loads stats-gh runtime configuration from a TOML file and resolves GitHub credentials from environment-variable fallbacks.
|
Package config loads stats-gh runtime configuration from a TOML file and resolves GitHub credentials from environment-variable fallbacks. |
|
githubapi
Package githubapi wraps the GitHub REST and GraphQL APIs that stats-gh uses, including a rate-limit-aware HTTP transport and typed query helpers.
|
Package githubapi wraps the GitHub REST and GraphQL APIs that stats-gh uses, including a rate-limit-aware HTTP transport and typed query helpers. |
|
logging
Package logging is the stats-gh slog setup: it builds the structured logger, sets it as the process default, and exposes context-carrying helpers.
|
Package logging is the stats-gh slog setup: it builds the structured logger, sets it as the process default, and exposes context-carrying helpers. |
|
model
Package model defines the data shapes shared across the GitHub fetch, aggregation, rendering, and diagnostics layers of stats-gh.
|
Package model defines the data shapes shared across the GitHub fetch, aggregation, rendering, and diagnostics layers of stats-gh. |
|
output
Package output wraps stdout/stderr writes so call sites do not have to import os and fmt directly.
|
Package output wraps stdout/stderr writes so call sites do not have to import os and fmt directly. |
|
profilecounter
Package profilecounter reads the profile-view badge that the profile README renders and turns its SVG value back into a numeric counter.
|
Package profilecounter reads the profile-view badge that the profile README renders and turns its SVG value back into a numeric counter. |
|
readmecache
Package readmecache rewrites profile README stats image URLs so GitHub refreshes cached raw SVG assets after generated images change.
|
Package readmecache rewrites profile README stats image URLs so GitHub refreshes cached raw SVG assets after generated images change. |
|
render
Package render turns a collected StatsSummary into the overview, languages, and top_repos SVG files written under generated/.
|
Package render turns a collected StatsSummary into the overview, languages, and top_repos SVG files written under generated/. |
|
version
Package version exposes the binary's build-stamped version string, overridden at link time via -ldflags.
|
Package version exposes the binary's build-stamped version string, overridden at link time via -ldflags. |
|
viewshistory
Package viewshistory persists per-repo daily traffic counts so the Overview SVG can show a lifetime view total instead of GitHub's rolling 14-day window.
|
Package viewshistory persists per-repo daily traffic counts so the Overview SVG can show a lifetime view total instead of GitHub's rolling 14-day window. |
Click to show internal directories.
Click to hide internal directories.