Documentation ¶
Index ¶
- func BatchQuery[T any](ctx context.Context, client *Client, queries map[string]string, ...) (map[string]T, error)
- type Client
- type ClientWrapper
- type GraphQLWrapper
- type IssuesServiceWrapper
- type OrganizationsServiceWrapper
- type RepositoriesServiceWrapper
- func (s *RepositoriesServiceWrapper) Get(ctx context.Context, owner string, repo string) (*github.Repository, error)
- func (s *RepositoriesServiceWrapper) GetCommit(ctx context.Context, owner string, repository string, sha string, ...) (*github.RepositoryCommit, error)
- func (s *RepositoriesServiceWrapper) GetReadMe(ctx context.Context, owner string, repo string, ...) (*github.RepositoryContent, error)
- func (s *RepositoriesServiceWrapper) List(ctx context.Context, user string, opts *github.RepositoryListOptions) ([]*github.Repository, error)
- func (s *RepositoriesServiceWrapper) ListCommits(ctx context.Context, owner string, repository string, ...) ([]*github.RepositoryCommit, error)
- func (s *RepositoriesServiceWrapper) ListContributorStats(ctx context.Context, owner string, repository string) ([]*github.ContributorStats, error)
- func (s *RepositoriesServiceWrapper) ListContributors(ctx context.Context, owner string, repository string, ...) ([]*github.Contributor, error)
- func (s *RepositoriesServiceWrapper) ListReleases(ctx context.Context, owner string, repository string, opts *github.ListOptions) ([]*github.RepositoryRelease, error)
- func (s *RepositoriesServiceWrapper) ListTags(ctx context.Context, owner string, repository string, opts *github.ListOptions) ([]*github.RepositoryTag, error)
- type ServiceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientWrapper ¶
type ClientWrapper struct { Cache *cache.Cache Client *Client Repositories *RepositoriesServiceWrapper Organizations *OrganizationsServiceWrapper Issues *IssuesServiceWrapper GraphQL *GraphQLWrapper // contains filtered or unexported fields }
func NewClientWrapper ¶
func NewClientWrapper(client *Client, cache *cache.Cache) *ClientWrapper
type GraphQLWrapper ¶
type GraphQLWrapper ServiceWrapper
func (*GraphQLWrapper) FetchContributorInfo ¶
func (ql *GraphQLWrapper) FetchContributorInfo(ctx context.Context, repo string, contributors []*github.Contributor) (map[string]model.ContributorInfo, error)
type IssuesServiceWrapper ¶
type IssuesServiceWrapper ServiceWrapper
func (*IssuesServiceWrapper) ListByRepo ¶
func (s *IssuesServiceWrapper) ListByRepo(ctx context.Context, owner string, repository string, opts *github.IssueListByRepoOptions) ([]*github.Issue, error)
func (*IssuesServiceWrapper) ListComments ¶
func (s *IssuesServiceWrapper) ListComments(ctx context.Context, owner string, repository string, number int, opts *github.IssueListCommentsOptions) ([]*github.IssueComment, error)
type OrganizationsServiceWrapper ¶
type OrganizationsServiceWrapper ServiceWrapper
func (*OrganizationsServiceWrapper) Get ¶
func (s *OrganizationsServiceWrapper) Get(ctx context.Context, org string) (*github.Organization, error)
func (*OrganizationsServiceWrapper) List ¶
func (s *OrganizationsServiceWrapper) List(ctx context.Context, user string, opts *github.ListOptions) ([]*github.Organization, error)
type RepositoriesServiceWrapper ¶
type RepositoriesServiceWrapper ServiceWrapper
func (*RepositoriesServiceWrapper) Get ¶
func (s *RepositoriesServiceWrapper) Get(ctx context.Context, owner string, repo string) (*github.Repository, error)
func (*RepositoriesServiceWrapper) GetCommit ¶
func (s *RepositoriesServiceWrapper) GetCommit(ctx context.Context, owner string, repository string, sha string, opts *github.ListOptions) (*github.RepositoryCommit, error)
func (*RepositoriesServiceWrapper) GetReadMe ¶
func (s *RepositoriesServiceWrapper) GetReadMe(ctx context.Context, owner string, repo string, opts *github.RepositoryContentGetOptions) (*github.RepositoryContent, error)
func (*RepositoriesServiceWrapper) List ¶
func (s *RepositoriesServiceWrapper) List(ctx context.Context, user string, opts *github.RepositoryListOptions) ([]*github.Repository, error)
func (*RepositoriesServiceWrapper) ListCommits ¶
func (s *RepositoriesServiceWrapper) ListCommits(ctx context.Context, owner string, repository string, opts *github.CommitsListOptions) ([]*github.RepositoryCommit, error)
func (*RepositoriesServiceWrapper) ListContributorStats ¶
func (s *RepositoriesServiceWrapper) ListContributorStats(ctx context.Context, owner string, repository string) ([]*github.ContributorStats, error)
func (*RepositoriesServiceWrapper) ListContributors ¶
func (s *RepositoriesServiceWrapper) ListContributors(ctx context.Context, owner string, repository string, opts *github.ListContributorsOptions) ([]*github.Contributor, error)
func (*RepositoriesServiceWrapper) ListReleases ¶
func (s *RepositoriesServiceWrapper) ListReleases(ctx context.Context, owner string, repository string, opts *github.ListOptions) ([]*github.RepositoryRelease, error)
func (*RepositoriesServiceWrapper) ListTags ¶
func (s *RepositoriesServiceWrapper) ListTags(ctx context.Context, owner string, repository string, opts *github.ListOptions) ([]*github.RepositoryTag, error)
type ServiceWrapper ¶
Click to show internal directories.
Click to hide internal directories.