Documentation
¶
Index ¶
- func LoadLinguistLanguages() (map[string]struct{ ... }, error)
- func Request(token, query string, variables map[string]interface{}) (*http.Response, error)
- type Data
- type DataUser
- type GraphQLPRFilesResponse
- type GraphQLResponse
- type GraphQLUserResponse
- type LanguageEdge
- type LanguageNode
- type Languages
- type LinguistLanguage
- type OrganizationNode
- type Organizations
- type PRFileNode
- type PRFiles
- type PRRepositoryDetail
- type PageInfo
- type PrimaryLanguage
- type Repositories
- type RepositoryEdge
- type RepositoryNode
- type Result
- type ResultLanguage
- type ResultOrganizations
- type ResultRepository
- type UserPullRequestEdge
- type UserPullRequestNode
- type UserPullRequests
- type UserRepositories
- type UserRepositoryEdge
- type UserRepositoryNode
- type Viewer
- type ViewerUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadLinguistLanguages ¶ added in v1.0.3
Types ¶
type DataUser ¶
type DataUser struct {
Viewer ViewerUser `json:"viewer"`
}
type GraphQLPRFilesResponse ¶ added in v1.0.3
type GraphQLPRFilesResponse struct {
Data struct {
Node struct {
Files PRFiles `json:"files"`
} `json:"node"`
} `json:"data"`
}
type GraphQLResponse ¶
type GraphQLResponse struct {
Data Data `json:"data"`
}
type GraphQLUserResponse ¶
type GraphQLUserResponse struct {
Data DataUser `json:"data"`
}
type LanguageEdge ¶
type LanguageEdge struct {
Node LanguageNode `json:"node"`
Size int `json:"Size"`
}
type LanguageNode ¶
type Languages ¶
type Languages struct {
Edges []LanguageEdge `json:"edges"`
}
type LinguistLanguage ¶ added in v1.0.3
type OrganizationNode ¶
type OrganizationNode struct {
Login string `json:"login"`
CanAdminister bool `json:"viewerCanAdminister"`
Repositories Repositories `json:"repositories"`
}
type Organizations ¶
type Organizations struct {
Nodes []OrganizationNode `json:"nodes"`
PageInfo PageInfo `json:"pageInfo"`
}
type PRFileNode ¶ added in v1.0.3
type PRFiles ¶ added in v1.0.3
type PRFiles struct {
Nodes []PRFileNode `json:"nodes"`
PageInfo PageInfo `json:"pageInfo"`
}
type PRRepositoryDetail ¶ added in v1.0.3
type PrimaryLanguage ¶
type PrimaryLanguage struct {
Name string `json:"Name"`
}
type Repositories ¶
type Repositories struct {
Edges []RepositoryEdge `json:"edges"`
PageInfo PageInfo `json:"pageInfo"`
}
type RepositoryEdge ¶
type RepositoryEdge struct {
Node RepositoryNode `json:"node"`
}
type RepositoryNode ¶
type RepositoryNode struct {
Name string `json:"name"`
NameWithOwner string `json:"nameWithOwner"`
PrimaryLanguage PrimaryLanguage `json:"primaryLanguage"`
Languages Languages `json:"languages"`
}
type Result ¶
type Result struct {
Repositories []*ResultRepository
}
func FetchOrganizations ¶
type ResultLanguage ¶
type ResultOrganizations ¶
type ResultRepository ¶
type UserPullRequestEdge ¶ added in v1.0.3
type UserPullRequestEdge struct {
Node UserPullRequestNode `json:"node"`
}
type UserPullRequestNode ¶ added in v1.0.3
type UserPullRequestNode struct {
ID string `json:"id"`
Title string `json:"title"`
Repository PRRepositoryDetail `json:"repository"`
Files PRFiles `json:"files"`
}
type UserPullRequests ¶ added in v1.0.3
type UserPullRequests struct {
Edges []UserPullRequestEdge `json:"edges"`
PageInfo PageInfo `json:"pageInfo"`
}
type UserRepositories ¶ added in v1.0.3
type UserRepositories struct {
Edges []UserRepositoryEdge `json:"edges"`
PageInfo PageInfo `json:"pageInfo"`
}
type UserRepositoryEdge ¶ added in v1.0.3
type UserRepositoryEdge struct {
Node UserRepositoryNode `json:"node"`
}
type UserRepositoryNode ¶ added in v1.0.3
type UserRepositoryNode struct {
Name string `json:"name"`
NameWithOwner string `json:"nameWithOwner"`
IsFork bool `json:"isFork"`
PrimaryLanguage PrimaryLanguage `json:"primaryLanguage"`
Languages Languages `json:"languages"`
}
type Viewer ¶
type Viewer struct {
Organizations Organizations `json:"organizations"`
}
type ViewerUser ¶
type ViewerUser struct {
Repositories UserRepositories `json:"repositories"`
PullRequests UserPullRequests `json:"pullRequests"`
}
Click to show internal directories.
Click to hide internal directories.