stats

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	GitHubClient
	Logger *slog.Logger
}

func (Client) GetRepoStats

func (c Client) GetRepoStats(ctx context.Context, users []string, repos []string) ([]github.RepoStats, error)

type GitHubClient

type GitHubClient interface {
	GetUserReposPage(context.Context, string, int) ([]string, int, error)
	GetRepoStats(context.Context, string, string) (github.RepoStats, error)
	GetPullRequestCountPage(context.Context, string, string, int) (int, int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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