Documentation ¶
Index ¶
- type Client
- func (client *Client) FetchAuthenticatedUser(ctx context.Context) (*model.User, error)
- func (client *Client) FetchBranches(ctx context.Context, owner string, repo string) ([]model.Branch, error)
- func (client *Client) FetchIssues(ctx context.Context, owner string, repo string) ([]model.Issue, error)
- func (client *Client) FetchIssuesAssigned(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) FetchIssuesCreated(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) FetchIssuesMentioned(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) FetchMentioned(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) FetchMilestones(ctx context.Context, owner string, repo string) ([]model.Milestone, error)
- func (client *Client) FetchProjects(ctx context.Context, owner string, repo string) ([]model.Project, error)
- func (client *Client) FetchPulls(ctx context.Context, owner string, repo string) ([]model.PullRequest, error)
- func (client *Client) FetchPullsAssigned(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) FetchPullsCreated(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) FetchReleases(ctx context.Context, owner string, repo string) ([]model.Release, error)
- func (client *Client) FetchRepo(ctx context.Context, owner string, repo string) (*model.Repo, error)
- func (client *Client) FetchReposByOrgs(ctx context.Context, org string) ([]model.Repo, error)
- func (client *Client) FetchReposByOwner(ctx context.Context, owner string) ([]model.Repo, error)
- func (client *Client) FetchReviewRequests(ctx context.Context, user string) ([]model.Issue, error)
- func (client *Client) SearchIssues(ctx context.Context, query string, opt *github.SearchOptions) ([]model.Issue, error)
- func (client *Client) SearchPulls(ctx context.Context, user string) ([]model.Issue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client describe an instance of API client.
func (*Client) FetchAuthenticatedUser ¶
GetAuthenticatedUser fetch the authenticated user.
func (*Client) FetchBranches ¶
func (client *Client) FetchBranches(ctx context.Context, owner string, repo string) ([]model.Branch, error)
FetchBranches fetch the branches in the repository.
func (*Client) FetchIssues ¶
func (client *Client) FetchIssues(ctx context.Context, owner string, repo string) ([]model.Issue, error)
FetchIssues fetch the issues in the repository.
func (*Client) FetchIssuesAssigned ¶
func (*Client) FetchIssuesCreated ¶
func (*Client) FetchIssuesMentioned ¶
func (*Client) FetchMentioned ¶
func (*Client) FetchMilestones ¶
func (client *Client) FetchMilestones(ctx context.Context, owner string, repo string) ([]model.Milestone, error)
FetchMilestones fetch the milestones in the repository.
func (*Client) FetchProjects ¶
func (client *Client) FetchProjects(ctx context.Context, owner string, repo string) ([]model.Project, error)
FetchProjects fetch the project cards in the repository.
func (*Client) FetchPulls ¶
func (client *Client) FetchPulls(ctx context.Context, owner string, repo string) ([]model.PullRequest, error)
FetchPulls fetch the pull requests in the repository.
func (*Client) FetchPullsAssigned ¶
func (*Client) FetchPullsCreated ¶
func (*Client) FetchReleases ¶
func (*Client) FetchRepo ¶
func (client *Client) FetchRepo(ctx context.Context, owner string, repo string) (*model.Repo, error)
FetchRepo fetch the target repository
func (*Client) FetchReposByOrgs ¶
FetchReposByOrgs fetch the repository in the organization.
func (*Client) FetchReposByOwner ¶
FetchReposByOwner fetch the repos.
func (*Client) FetchReviewRequests ¶
func (*Client) SearchIssues ¶
Click to show internal directories.
Click to hide internal directories.