Documentation ¶
Index ¶
- Constants
- func ErrorMsgf(c *gin.Context, code int, err error, format string, a ...interface{})
- type ContributorHandler
- type ContributorItem
- type MemberItem
- type ParticipateRepository
- type ParticipateTeamItem
- type ProjectDetail
- type ProjectDetailStats
- type ProjectHandler
- type ProjectItem
- type TeamDetail
- type TeamHandler
- type TeamItem
- type TeamMemberItem
- type TeamRepositoryItem
Constants ¶
View Source
const ( DirectionAsc string = "asc" DirectionDesc string = "desc" )
View Source
const ( ContributorLoginOrder = "login" ContributorPRCountOrder = "pr_count" ContributorFirstPRMergedAtOrder = "first_pr_merged_at" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContributorHandler ¶
type ContributorHandler struct { BaseURL string // contains filtered or unexported fields }
func (*ContributorHandler) GetContributors ¶
func (h *ContributorHandler) GetContributors( projectName string, includeBots bool, order, direction string, ) ([]ContributorItem, error)
type ContributorItem ¶
type MemberItem ¶
type MemberItem struct { GitHubID uint `json:"github_id"` GitHubLogin string `json:"github_login"` Name string `json:"name"` ParticipateTeams []ParticipateTeamItem `json:"participate_teams"` }
type ParticipateRepository ¶
type ParticipateTeamItem ¶
type ProjectDetail ¶
type ProjectDetail struct { DisplayName string `json:"display_name"` Name string `json:"name"` URL string `json:"url"` ContributorsURL string `json:"contributor_url"` Stats ProjectDetailStats `json:"stats,omitempty"` }
type ProjectDetailStats ¶
type ProjectHandler ¶
type ProjectHandler struct { BaseURL string // contains filtered or unexported fields }
func (*ProjectHandler) GetProject ¶
func (h *ProjectHandler) GetProject(projectName string) (*ProjectDetail, error)
func (*ProjectHandler) GetProjects ¶
func (h *ProjectHandler) GetProjects() ([]ProjectDetail, error)
type ProjectItem ¶
type TeamDetail ¶
type TeamDetail struct { Name string `json:"name"` Description string `json:"description"` Maintainers []TeamMemberItem `json:"maintainers"` Committers []TeamMemberItem `json:"committers"` Reviewers []TeamMemberItem `json:"reviewers"` Repositories []TeamRepositoryItem `json:"repositories"` }
type TeamHandler ¶
type TeamHandler struct { BaseURL string // contains filtered or unexported fields }
func (*TeamHandler) GetMembers ¶
func (h *TeamHandler) GetMembers(level string) ([]MemberItem, error)
func (*TeamHandler) GetTeam ¶
func (h *TeamHandler) GetTeam(teamName string) (*TeamDetail, error)
func (*TeamHandler) GetTeams ¶
func (h *TeamHandler) GetTeams() ([]TeamItem, error)
type TeamItem ¶
type TeamItem struct { ID uint `json:"id"` Name string `json:"name"` Description string `json:"description"` URL string `json:"url"` Project ProjectItem `json:"project"` }
type TeamMemberItem ¶
type TeamRepositoryItem ¶
Click to show internal directories.
Click to hide internal directories.