Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchPattern ¶
type MatchPattern struct {
Pattern string
}
func (MatchPattern) Apply ¶
func (m MatchPattern) Apply(ctx context.Context, results *[]github.CodeResult) *[]github.CodeResult
removes all results that don't contain exact match with the pattern
type SearchResultsRefiner ¶
type SearchResultsRefiner interface {
Apply(ctx context.Context, results *[]github.CodeResult) *[]github.CodeResult //TODO why do you actually pass a context here? I haven't seen it used
}
type SortByRepositoryScore ¶
func (SortByRepositoryScore) Apply ¶
func (s SortByRepositoryScore) Apply(ctx context.Context, results *[]github.CodeResult) *[]github.CodeResult
sorts results based on repository score
Click to show internal directories.
Click to hide internal directories.