Documentation ¶
Index ¶
- Constants
- func WithFrom(from time.Time) func(Parameter)
- func WithUserName(userName string) func(Parameter)
- type Client
- func (c *Client) ClosedIssues(userName string, from time.Time, limit int) ([]Issue, error)
- func (c *Client) MergedPullRequests(userName string, from time.Time, limit int) ([]PullRequest, error)
- func (c *Client) Paginate(name string, query interface{}, variables map[string]interface{}, ...) error
- func (c *Client) ReportedIssues(userName string, from time.Time, limit int) ([]Issue, error)
- func (c *Client) ReviewedPullRequests(userName string, from time.Time, limit int) ([]PullRequest, error)
- func (c *Client) ViewerName(userName string) (string, error)
- type ClosedIssues
- type DateTime
- type Issue
- type Labels
- type MergedPullRequests
- type PageInfo
- type Parameter
- type PullRequest
- type ReportedIssues
- type ReviewedPullRequests
- type ViewerName
Constants ¶
View Source
const TimeFormat = time.RFC3339
Variables ¶
This section is empty.
Functions ¶
func WithUserName ¶
Types ¶
type Client ¶
func (*Client) ClosedIssues ¶
func (*Client) MergedPullRequests ¶
func (*Client) ReportedIssues ¶
func (*Client) ReviewedPullRequests ¶
type ClosedIssues ¶
type Issue ¶
type Issue struct { model.IssuePrimitive Labels Labels `graphql:"labels(first: 10)"` }
type MergedPullRequests ¶
type MergedPullRequests struct { Search struct { Nodes []struct { PullRequest `graphql:"... on PullRequest"` } PageInfo PageInfo } `graphql:"search(query: $searchQuery, type: ISSUE, first: $limit, after: $after)"` }
type PullRequest ¶
type PullRequest struct { model.PullRequestPrimitive Labels Labels `graphql:"labels(first: 10)"` }
type ReportedIssues ¶
type ReviewedPullRequests ¶
type ReviewedPullRequests struct { Search struct { Nodes []struct { PullRequest `graphql:"... on PullRequest"` } PageInfo PageInfo } `graphql:"search(query: $searchQuery, type: ISSUE, first: $limit, after: $after)"` }
type ViewerName ¶
type ViewerName struct { Viewer struct { Login string } }
Click to show internal directories.
Click to hide internal directories.