Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
func SaveConfig(cfg *GithubConfig) error
Types ¶
type GitHubClient ¶
type GitHubClient struct {
// contains filtered or unexported fields
}
func NewGitHubClient ¶
func NewGitHubClient(cfg *GithubConfig) *GitHubClient
func (*GitHubClient) ExistUser ¶
func (c *GitHubClient) ExistUser(id string) bool
func (*GitHubClient) QueryUserProfile ¶
func (c *GitHubClient) QueryUserProfile(id string) (*UserProfile, error)
func (*GitHubClient) QueryUserPullRequests ¶
func (c *GitHubClient) QueryUserPullRequests(id string) (*UserPullRequests, error)
func (*GitHubClient) QueryUserRepositories ¶
func (c *GitHubClient) QueryUserRepositories(id string) (*UserRepositories, error)
type GithubConfig ¶
type GithubConfig struct {
AccessToken string `json:"access_token"`
}
func Authorize ¶
func Authorize() (*GithubConfig, error)
func LoadConfig ¶
func LoadConfig() (*GithubConfig, error)
type UserProfile ¶
type UserPullRequests ¶
type UserPullRequests struct { TotalCount int Owners []*UserPullRequestsOwner }
func (*UserPullRequests) Owner ¶
func (p *UserPullRequests) Owner(owner string) *UserPullRequestsOwner
type UserPullRequestsOwner ¶
type UserPullRequestsOwner struct { Name string Repositories []*UserPullRequestsRepository }
type UserRepositories ¶
type UserRepositories struct { TotalCount int Repositories []*UserRepository }
Click to show internal directories.
Click to hide internal directories.