Documentation
¶
Index ¶
- type Data
- type Issue
- type IssueConnection
- type IssueQuery
- type Language
- type LanguageConnection
- type License
- type PRQuery
- type PageInfo
- type PullRequest
- type PullRequestConnection
- type Release
- type ReleaseConnection
- type Repository
- type RepositoryCollaboratorConnection
- type RepositoryQuery
- type Stargazer
- type StargazerConnection
- type StargazerEdge
- type StargazerEdges
- type StargazerQuery
- type Stat
- type UserConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"`
}
type Issue ¶
type Issue struct {
Issues IssueConnection `graphql:"issues(first: 1, states: $issueStates)"`
}
type IssueConnection ¶
type IssueQuery ¶
type IssueQuery struct {
Issue Issue `graphql:"repository(owner: $owner, name: $name)"`
}
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 {
PullRequests PullRequestConnection `graphql:"pullRequests(first: 1, states: $pullRequestStates)"`
}
type PullRequestConnection ¶
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)"`
}
type RepositoryQuery ¶
type RepositoryQuery struct {
Repository Repository `graphql:"repository(owner: $owner, name: $name)"`
}
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) 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) OpenIssueCount ¶
func (Stat) OpenPullRequestCount ¶
func (Stat) Repository ¶
func (s Stat) Repository() Repository
type UserConnection ¶
Click to show internal directories.
Click to hide internal directories.