Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchCandidates ¶
func FetchCandidates(repo *db.HistoryRepo, opts CandidateOpts) ([]db.HistoryEntry, error)
Types ¶
type CandidateOpts ¶
type ScoredEntry ¶
type ScoredEntry struct {
Entry db.HistoryEntry
MatchInfo match.Match
FinalScore int
}
func ScoreAndSort ¶
func ScoreAndSort(entries []db.HistoryEntry, matches []match.Match, opts ScoringOpts) []ScoredEntry
type ScoringOpts ¶
func DefaultScoringOpts ¶
func DefaultScoringOpts(cwd string) ScoringOpts
Click to show internal directories.
Click to hide internal directories.