Documentation ¶
Index ¶
- Constants
- type GithubClient
- func (c *GithubClient) CheckOrgMembership(ctx context.Context, username string) (isMember bool, err error)
- func (c *GithubClient) GetAllReposByOrg(ctx context.Context) (getReposByOrgResponse *models.GetReposByOrgResponse, err error)
- func (c *GithubClient) GetContributerStatsByRepo(ctx context.Context, repoName string) (getContributerStatsByRepoResponse *models.GetContributerStatsByRepoResponse, ...)
- func (c *GithubClient) GetOrg(ctx context.Context) (getOrgResponse *models.GetOrgResponse, err error)
- func (c *GithubClient) GetReposByOrgByPage(ctx context.Context, page int) (getReposByOrgResponse *models.GetReposByOrgResponse, err error)
- func (c *GithubClient) GetUser(ctx context.Context) (getUserResponse *models.GetUserResponse, err error)
Constants ¶
View Source
const (
GITHUB_BASE_URL = "https://api.github.com/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubClient ¶
func (*GithubClient) CheckOrgMembership ¶
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)
Click to show internal directories.
Click to hide internal directories.