collector

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Client StatClient
	Logger *slog.Logger
	Users  []string
	Repos  []string

	Lifetime time.Duration

	IncludeArchived bool
	// contains filtered or unexported fields
}

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

type StatClient added in v0.2.1

type StatClient interface {
	GetRepoStats(context.Context, []string, []string) ([]github.RepoStats, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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