stats

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 10 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 {
	GetUserRepoNames(context.Context, string) ([]string, error)
	GetRepoStats(context.Context, string, string) (github.RepoStats, error)
	GetPullRequestCount(context.Context, string, string) (int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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