Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { ShaHash string `json:"sha"` Commit GitCommit `json:"commit"` URL string `json:"url"` }
A Commit from github
type GitAuthor ¶
type GitAuthor struct { Name string `json:"name"` Email string `json:"email"` Date string `json:"date"` }
The GitAuthor is the author of a git commit, with a name, email, and a date
type GitCommit ¶
type GitCommit struct { Author GitAuthor `json:"author"` Message string `json:"message"` URL string `json:"url"` CommentCount string `json:"comment_count"` Verification GitVerification `json:"verification"` }
GitCommit is just a commit
type GitVerification ¶
type GitVerification struct { Verified bool `json:"verified"` Reason string `json:"reason"` Signature string `json:"signature"` Payload string `json:"payload"` }
The GitVerification is the verification on a commit
type Repo ¶
type Repo struct { Name string `json:"name"` FullName string `json:"full_name"` Owner RepoOwner `json:"owner"` Description string `json:"description"` GitURL string `json:"git_url"` CloneURL string `json:"clone_url"` Stargazers int64 `json:"stargazers_count"` Watchers int64 `json:"watchers_count"` Forks int64 `json:"forks"` DefaultBranch int64 `json:"default_branch"` }
A Repo and all it's info
func (Repo) GetCommits ¶
GetCommits gets all the commits from the given repository, including the git verifications
type RepoOwner ¶
type RepoOwner struct { Username string `json:"login"` ID int64 `json:"id"` ReposURL string `json:"repos_url"` }
RepoOwner is a struct for the owner of a repo in the github API
type User ¶
type User struct { Username string `json:"login"` ID int64 `json:"id"` Avatar string `json:"avatar_url"` ReposURL string `json:"repos_url"` Bio string `json:"bio"` Blog string `json:"blog"` Followers int64 `json:"followers"` Following int64 `json:"following"` Hireable bool `json:"hireable"` IsAdmin bool `json:"site_admin"` TwitterUsername string `json:"twitter_username"` Email string `json:"email"` PublicRepos int64 `json:"public_repos"` PublicGists int64 `json:"public_gists"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
User is a struct for parsing in json
Click to show internal directories.
Click to hide internal directories.