Documentation ¶
Index ¶
- func MakeAPIRequestForArray(apiParams string) []interface{}
- type Blink1
- type Configuration
- type Event
- type EventType
- type GHMon
- func (ghm *GHMon) ConvertPullRequestReviewStateToString(pullRequestReviewStatus PullRequestReviewStatus) string
- func (ghm *GHMon) ConvertToPullRequestReviewState(pullRequestReviewStatusString string) PullRequestReviewStatus
- func (ghm *GHMon) Events() <-chan Event
- func (ghm *GHMon) HasValidSetup() bool
- func (ghm *GHMon) Initialize()
- func (ghm *GHMon) IsLoggedIn() bool
- func (ghm *GHMon) Logger() *log.Logger
- func (ghm *GHMon) PurgeDeletedPullRequests() int
- func (ghm *GHMon) RetrievePullRequests()
- func (ghm *GHMon) RetrieveUser() *User
- func (ghm *GHMon) UpdateSeen(pullRequestWrapper *PullRequestWrapper, seen bool)
- type LoggerConsole
- type PullRequest
- type PullRequestEntry
- type PullRequestGroup
- type PullRequestReview
- type PullRequestReviewStatus
- type PullRequestScore
- type PullRequestType
- type PullRequestWrapper
- type PullRequestsUpdatesEvent
- type Repo
- type RepositoryConfiguration
- type ScoreCalculator
- func (scoreCalculator *ScoreCalculator) CalculateScore(user *User, pullRequestWrapper *PullRequestWrapper) PullRequestScore
- func (scoreCalculator *ScoreCalculator) CalculateTotalScore(user *User, pullRequestWrapper *PullRequestWrapper) float32
- func (scoreCalculator *ScoreCalculator) ExtractMostImportantFirst(pullRequestReviews []*PullRequestReview) *PullRequestReview
- func (scoreCalculator *ScoreCalculator) PullRequestReviewStatusToInt(status PullRequestReviewStatus) int
- func (scoreCalculator *ScoreCalculator) RankPullRequestReview(left *PullRequestReview, right *PullRequestReview) int
- type Storage
- type UI
- type User
- type UserConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAPIRequestForArray ¶
func MakeAPIRequestForArray(apiParams string) []interface{}
Types ¶
type Configuration ¶
type GHMon ¶
type GHMon struct {
// contains filtered or unexported fields
}
func (*GHMon) ConvertPullRequestReviewStateToString ¶
func (ghm *GHMon) ConvertPullRequestReviewStateToString(pullRequestReviewStatus PullRequestReviewStatus) string
func (*GHMon) ConvertToPullRequestReviewState ¶
func (ghm *GHMon) ConvertToPullRequestReviewState(pullRequestReviewStatusString string) PullRequestReviewStatus
func (*GHMon) HasValidSetup ¶
func (*GHMon) Initialize ¶
func (ghm *GHMon) Initialize()
func (*GHMon) IsLoggedIn ¶
func (*GHMon) PurgeDeletedPullRequests ¶
func (*GHMon) RetrievePullRequests ¶
func (ghm *GHMon) RetrievePullRequests()
func (*GHMon) RetrieveUser ¶
func (*GHMon) UpdateSeen ¶
func (ghm *GHMon) UpdateSeen(pullRequestWrapper *PullRequestWrapper, seen bool)
type LoggerConsole ¶
type LoggerConsole struct {
// contains filtered or unexported fields
}
type PullRequest ¶
type PullRequest struct { Id uint32 Repo *Repo Creator *User Title string Body string HtmlURL *url.URL PullRequestURL *url.URL CreatedAt time.Time UpdatedAt time.Time PullRequestReviewsByUser map[uint32][]*PullRequestReview PullRequestReviewsByPriority [][]*PullRequestReview PullRequestType PullRequestType Lock sync.Mutex }
type PullRequestEntry ¶
type PullRequestEntry struct {
// contains filtered or unexported fields
}
type PullRequestGroup ¶
type PullRequestGroup struct {
// contains filtered or unexported fields
}
type PullRequestReview ¶
type PullRequestReview struct { User *User Status PullRequestReviewStatus SubmittedAt time.Time Score float32 }
type PullRequestReviewStatus ¶
type PullRequestReviewStatus int
const ( PullRequestReviewStatusUnknown PullRequestReviewStatus = iota PullRequestReviewStatusApproved PullRequestReviewStatusCommented PullRequestReviewStatusChangesRequested PullRequestReviewStatusPending PullRequestReviewStatusRequested PullRequestReviewStatusDismissed )
type PullRequestScore ¶
type PullRequestWrapper ¶
type PullRequestWrapper struct { Id uint32 PullRequestType PullRequestType FirstSeen time.Time Seen bool /* Score is between 0 and 100 (higher score, more critical) */ Score PullRequestScore PullRequest *PullRequest Deleted bool }
type PullRequestsUpdatesEvent ¶
type PullRequestsUpdatesEvent struct {
// contains filtered or unexported fields
}
type RepositoryConfiguration ¶
type RepositoryConfiguration struct {
// contains filtered or unexported fields
}
type ScoreCalculator ¶
type ScoreCalculator struct {
// contains filtered or unexported fields
}
func (*ScoreCalculator) CalculateScore ¶
func (scoreCalculator *ScoreCalculator) CalculateScore(user *User, pullRequestWrapper *PullRequestWrapper) PullRequestScore
func (*ScoreCalculator) CalculateTotalScore ¶
func (scoreCalculator *ScoreCalculator) CalculateTotalScore(user *User, pullRequestWrapper *PullRequestWrapper) float32
func (*ScoreCalculator) ExtractMostImportantFirst ¶
func (scoreCalculator *ScoreCalculator) ExtractMostImportantFirst(pullRequestReviews []*PullRequestReview) *PullRequestReview
func (*ScoreCalculator) PullRequestReviewStatusToInt ¶
func (scoreCalculator *ScoreCalculator) PullRequestReviewStatusToInt(status PullRequestReviewStatus) int
func (*ScoreCalculator) RankPullRequestReview ¶
func (scoreCalculator *ScoreCalculator) RankPullRequestReview(left *PullRequestReview, right *PullRequestReview) int
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) DeletePullRequestWrapper ¶
func (*Storage) LoadPullRequestWrapper ¶
func (ghmStorage *Storage) LoadPullRequestWrapper(id uint32) chan *PullRequestWrapper
func (*Storage) StorePullRequestWrapper ¶
func (ghmStorage *Storage) StorePullRequestWrapper(pullRequestWrapper *PullRequestWrapper)
type UserConfiguration ¶
type UserConfiguration struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.