github

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity interface {
	ListStargazers(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Stargazer, *github.Response, error)
}

type Client

type Client struct {
	Repositories
	Activity
}

func NewGitHubClient

func NewGitHubClient(token string) *Client

func (Client) GetStarGazers

func (c Client) GetStarGazers(ctx context.Context, repo *github.Repository) ([]*github.Stargazer, error)

func (Client) GetUserRepos

func (c Client) GetUserRepos(ctx context.Context, user string) iter.Seq2[*github.Repository, error]

type Repositories

type Repositories interface {
	ListByUser(ctx context.Context, user string, opts *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)
}

Jump to

Keyboard shortcuts

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