github

package
v0.0.0-...-d62fb46 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 2 Imported by: 0

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

func GetCommitsRepo(nameRepo string, ownerRepo string, authorID string, accessToken string) (*CommitsResponse, error)

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 GetIssues

func GetIssues(owner string, repo string, accessToken string) (*Response, error)

func GetMembers

func GetMembers(organization string, after string, accessToken string) (*Response, error)

func GetPulls

func GetPulls(owner string, name string, accessToken string, closed bool) (*Response, error)

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)

Jump to

Keyboard shortcuts

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