output

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendDeltaJSONL

func AppendDeltaJSONL(path string, now time.Time, report DeltaReport) error

func PrintDelta

func PrintDelta(w io.Writer, report DeltaReport)

func PrintJSON

func PrintJSON(w io.Writer, in []rank.Repo) error

func PrintTable

func PrintTable(w io.Writer, in []rank.Repo, descWidth int)

func PrintThemeSummary

func PrintThemeSummary(w io.Writer, in []rank.Repo)

func SendDeltaWebhook

func SendDeltaWebhook(webhookURL string, now time.Time, report DeltaReport, opts WebhookOptions) error

func SendDeltaWebhookWithClient

func SendDeltaWebhookWithClient(client *http.Client, webhookURL string, now time.Time, report DeltaReport, opts WebhookOptions) error

Types

type DeltaReport

type DeltaReport struct {
	NewRepos []rank.Repo
	Moves    []RankMove
}

func BuildDelta

func BuildDelta(prev []snapshot.Item, current []rank.Repo) DeltaReport

type RankMove

type RankMove struct {
	FullName   string
	FromRank   int
	ToRank     int
	DeltaRank  int
	DeltaStars int
}

type WebhookOptions added in v0.8.0

type WebhookOptions struct {
	AuthToken  string
	SignSecret string
}

Jump to

Keyboard shortcuts

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