github

package
v0.0.0-...-d770c28 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GITHUB_BASE_URL = "https://api.github.com/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubClient

type GithubClient struct {
	HttpClient *http.Client
}

func (*GithubClient) CheckOrgMembership

func (c *GithubClient) CheckOrgMembership(ctx context.Context, username string) (isMember bool, err error)

func (*GithubClient) GetAllReposByOrg

func (c *GithubClient) GetAllReposByOrg(ctx context.Context) (getReposByOrgResponse *models.GetReposByOrgResponse, err error)

func (*GithubClient) GetContributerStatsByRepo

func (c *GithubClient) GetContributerStatsByRepo(ctx context.Context, repoName string) (getContributerStatsByRepoResponse *models.GetContributerStatsByRepoResponse, err error)

func (*GithubClient) GetOrg

func (c *GithubClient) GetOrg(ctx context.Context) (getOrgResponse *models.GetOrgResponse, err error)

func (*GithubClient) GetReposByOrgByPage

func (c *GithubClient) GetReposByOrgByPage(ctx context.Context, page int) (getReposByOrgResponse *models.GetReposByOrgResponse, err error)

func (*GithubClient) GetUser

func (c *GithubClient) GetUser(ctx context.Context) (getUserResponse *models.GetUserResponse, err error)

Jump to

Keyboard shortcuts

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