Documentation ¶
Index ¶
- type Author
- type Client
- func (c *Client) GetGithubRepo(code, reponame string) (*Repo, error)
- func (c *Client) GetGithubUser(code string) (*UserResponse, error)
- func (c *Client) GetGithubUserAccessToken(code string) (token string, err error)
- func (c *Client) GetGithubUserRepoCommits(item *database.UsersReposResult) ([]*CommitItem, error)
- func (c *Client) GetGithubUserRepos(code, username string) ([]*Repo, error)
- func (c *Client) MakeRequest(url, token string) ([]byte, error)
- type Commit
- type CommitItem
- type Committer
- type OAuthAccessResponse
- type Repo
- type RepoErrorAnswer
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { Name string `json:"name"` Email string `json:"email"` Date time.Time `json:"date"` }
Author ...
type Client ¶
Client ...
func (*Client) GetGithubRepo ¶
GetGithubRepo ...
func (*Client) GetGithubUser ¶
func (c *Client) GetGithubUser(code string) (*UserResponse, error)
GetGithubUser ...
func (*Client) GetGithubUserAccessToken ¶
GetGithubUserAccessToken ...
func (*Client) GetGithubUserRepoCommits ¶
func (c *Client) GetGithubUserRepoCommits(item *database.UsersReposResult) ([]*CommitItem, error)
GetGithubUserRepoCommits ...
func (*Client) GetGithubUserRepos ¶
GetGithubUserRepos ...
type Commit ¶
type Commit struct { Author Author `json:"author"` Message string `json:"message"` Committer Committer `json:"committer"` }
Commit ...
type CommitItem ¶
type CommitItem struct { SHA string `json:"sha"` Commit Commit `json:"commit"` URL string `json:"url"` HTMLUrl string `json:"html_url"` }
CommitItem ...
type Committer ¶
type Committer struct { Name string `json:"name"` Email string `json:"email"` Date time.Time `json:"date"` }
Committer ...
type OAuthAccessResponse ¶
type OAuthAccessResponse struct {
AccessToken string `json:"access_token"`
}
OAuthAccessResponse ...
type Repo ¶
type Repo struct { Name string `json:"name"` FullName string `json:"full_name"` UpdatedAt time.Time `json:"updated_at"` }
Repo ...
type RepoErrorAnswer ¶
type RepoErrorAnswer struct { Message string `json:"message"` DocumentationURL string `json:"documentation_url"` }
RepoErrorAnswer ...
type UserResponse ¶
UserResponse ...
Click to show internal directories.
Click to hide internal directories.