Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeResponse ¶
type CodeResponse struct {
Viewer codeViewer `json:"repository"`
}
func GetInfoCodePage ¶
func GetInfoCodePage(nameRepo string, ownerRepo string, accessToken string) (*CodeResponse, error)
type CommentsResponse ¶
type CommentsResponse struct {
Nodes []commentNode `json:"nodes"`
}
func GetComments ¶
func GetComments(ids []string, accessToken string) (*CommentsResponse, error)
type CommitsResponse ¶
type CommitsResponse struct {
Viewer commitsViewer `json:"repository"`
}
func GetCommitsRepo ¶
type ReposResponse ¶
type ReposResponse struct {
Viewer viewer `json:"viewer"`
}
ReposResponse define the return's struct of GetLastRepos
func GetLastRepos ¶
func GetLastRepos(accessToken string) (*ReposResponse, error)
GetLastRepos is used for get last repos of the user
type Response ¶
type Response struct { Repository repository `json:"repository"` Organization organization `json:"organization"` }
func GetMembers ¶
type ResponseFail ¶
type ResponseFail struct {
// contains filtered or unexported fields
}
ResponseFail define the struct of a fail request
type UserResponse ¶
type UserResponse struct {
User userInfo `json:"user"`
}
func GetUserStats ¶
func GetUserStats(login string, accessToken string) (*UserResponse, error)
type UserScoreResponse ¶
type UserScoreResponse struct {
User userScoreInfo `json:"user"`
}
func GetUserScore ¶
func GetUserScore(login string, accessToken string) (*UserScoreResponse, error)
Click to show internal directories.
Click to hide internal directories.