Documentation ¶
Index ¶
- type Chart
- type CommitList
- type Data
- type Fork
- type ForkQuery
- type ForkRepository
- type Forks
- type Issue
- type IssueConnection
- type IssueEdge
- type IssueList
- type IssueQuery
- type Issues
- type Label
- type LabelConnection
- type Language
- type LanguageConnection
- type License
- type PRQuery
- type PageInfo
- type PullRequest
- type PullRequestConnection
- type PullRequestEdge
- type PullRequestList
- type PullRequestNode
- type Release
- type ReleaseConnection
- type Repository
- type RepositoryCollaboratorConnection
- type RepositoryConnection
- type RepositoryEdge
- type RepositoryQuery
- type RepositoryTopic
- type RepositoryTopicConnection
- type Stargazer
- type StargazerConnection
- type StargazerEdge
- type StargazerEdges
- type StargazerQuery
- type Stat
- type Topic
- type UserConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitList ¶ added in v1.0.1
type CommitList []*github.RepositoryCommit
func (CommitList) Chart ¶ added in v1.0.1
func (c CommitList) Chart() Chart
type Data ¶
type Data struct { Age string `json:"age"` AvgReleasePeriod string `json:"avgReleasePeriod,omitempty"` ContributorCount string `json:"contributorCount,omitempty"` ForkCount string `json:"forkCount,omitempty"` FullName string `json:"fullName,omitempty"` Homepage string `json:"homepage,omitempty"` Issue string `json:"issue"` Language string `json:"language,omitempty"` LastPushedAt string `json:"lastPushedAt"` LatestReleaseAt string `json:"latestReleaseAt"` LastUpdatedAt string `json:"lastUpdatedAt"` LatestDayStarCount string `json:"latestDayStarCount"` LatestMonthStarCount string `json:"latestMonthStarCount"` LatestWeekStarCount string `json:"latestWeekStarCount"` License string `json:"license,omitempty"` Pull string `json:"pull"` ReleaseCount string `json:"releaseCount,omitempty"` StarCount string `json:"starCount,omitempty"` WatcherCount string `json:"watcherCount,omitempty"` Description string `json:"description,omitempty"` Tags []string `json:"tags,omitempty"` LatestMonthStargazers Chart `json:"latestMonthStargazers"` LatestWeekForks Chart `json:"latestWeekForks"` LatestWeekCommits Chart `json:"latestWeekCommits"` LatestWeekPulls Chart `json:"latestWeekPulls"` LatestWeekIssues Chart `json:"latestWeekIssues"` }
type Fork ¶ added in v1.0.1
type Fork struct {
List RepositoryConnection `graphql:"forks(first: 100, orderBy: $orderBy, after: $after)"`
}
type ForkQuery ¶ added in v1.0.1
type ForkQuery struct {
Forks Fork `graphql:"repository(owner: $owner, name: $name)"`
}
type ForkRepository ¶ added in v1.0.1
type Forks ¶ added in v1.0.1
type Forks []RepositoryEdge
type IssueConnection ¶
type IssueQuery ¶
type IssueQuery struct {
Issue Issues `graphql:"repository(owner: $owner, name: $name)"`
}
type Issues ¶ added in v1.0.1
type Issues struct {
List IssueConnection `graphql:"issues(first: $first, orderBy: $orderBy, after: $after, states: $issueStates)"`
}
type LabelConnection ¶ added in v1.0.1
type LabelConnection struct {
Nodes []Label
}
type LanguageConnection ¶
type LanguageConnection struct {
Nodes []Language
}
type PRQuery ¶
type PRQuery struct {
PullRequest PullRequest `graphql:"repository(owner: $owner, name: $name)"`
}
type PullRequest ¶
type PullRequest struct {
List PullRequestConnection `graphql:"pullRequests(first: $first, orderBy: $orderBy, after: $after, states: $pullRequestStates)"`
}
type PullRequestConnection ¶
type PullRequestConnection struct { Edges []PullRequestEdge PageInfo PageInfo TotalCount githubv4.Int }
type PullRequestEdge ¶ added in v1.0.1
type PullRequestEdge struct { Cursor githubv4.String Node PullRequestNode }
type PullRequestList ¶ added in v1.0.1
type PullRequestList []PullRequestEdge
func (PullRequestList) Chart ¶ added in v1.0.1
func (p PullRequestList) Chart() Chart
type PullRequestNode ¶ added in v1.0.1
type ReleaseConnection ¶
type Repository ¶
type Repository struct { CreatedAt githubv4.DateTime ForkCount githubv4.Int HomepageUrl githubv4.URI Issues IssueConnection `graphql:"issues(first: 1, states: $issueStates)"` LatestRelease Release LicenseInfo License PrimaryLanguage Language NameWithOwner githubv4.String PullRequests PullRequestConnection `graphql:"pullRequests(first: 1, states: $pullRequestStates)"` PushedAt githubv4.DateTime Releases ReleaseConnection `graphql:"releases(first: 1, orderBy: $orderBy)"` StargazerCount githubv4.Int UpdatedAt githubv4.DateTime Watchers UserConnection `graphql:"watchers(first: 1)"` Description githubv4.String RepositoryTopics RepositoryTopicConnection `graphql:"repositoryTopics(first: 100)"` }
type RepositoryConnection ¶ added in v1.0.1
type RepositoryConnection struct { Edges []RepositoryEdge PageInfo PageInfo TotalCount githubv4.Int }
type RepositoryEdge ¶ added in v1.0.1
type RepositoryEdge struct { Cursor githubv4.String Node ForkRepository }
type RepositoryQuery ¶
type RepositoryQuery struct {
Repository Repository `graphql:"repository(owner: $owner, name: $name)"`
}
type RepositoryTopic ¶ added in v1.0.1
type RepositoryTopic struct {
Topic Topic
}
type RepositoryTopicConnection ¶ added in v1.0.1
type RepositoryTopicConnection struct {
Nodes []RepositoryTopic
}
func (RepositoryTopicConnection) List ¶ added in v1.0.1
func (t RepositoryTopicConnection) List() []string
type Stargazer ¶
type Stargazer struct {
Stargazers StargazerConnection `graphql:"stargazers(first: 100, orderBy: $orderBy, after: $after)"`
}
type StargazerConnection ¶
type StargazerConnection struct { Edges []StargazerEdge PageInfo PageInfo TotalCount githubv4.Int }
type StargazerEdge ¶
type StargazerEdges ¶
type StargazerEdges []StargazerEdge
func (StargazerEdges) Chart ¶ added in v1.0.1
func (s StargazerEdges) Chart() Chart
func (StargazerEdges) LatestDayStars ¶
func (s StargazerEdges) LatestDayStars() (int, int)
func (StargazerEdges) LatestMonthStars ¶
func (s StargazerEdges) LatestMonthStars() int
func (StargazerEdges) LatestWeekStars ¶
func (s StargazerEdges) LatestWeekStars() (int, int)
type StargazerQuery ¶
type StargazerQuery struct {
Stargazer Stargazer `graphql:"repository(owner: $owner, name: $name)"`
}
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
func (Stat) ContributorCount ¶
func (Stat) LatestWeekIssues ¶ added in v1.0.1
func (Stat) OpenIssueCount ¶
func (Stat) OpenPullRequestCount ¶
func (Stat) Repository ¶
func (s Stat) Repository() Repository
type UserConnection ¶
Click to show internal directories.
Click to hide internal directories.