Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideLocalIndexSearcher, ProvideIndexer, ProvideSearcher, ProvideService, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer interface {
Index(ctx context.Context, repo *types.Repository) error
}
func ProvideIndexer ¶
func ProvideIndexer(l *LocalIndexSearcher) Indexer
type LocalIndexSearcher ¶
type LocalIndexSearcher struct {
}
func NewLocalIndexSearcher ¶
func NewLocalIndexSearcher() *LocalIndexSearcher
func ProvideLocalIndexSearcher ¶
func ProvideLocalIndexSearcher() *LocalIndexSearcher
func (*LocalIndexSearcher) Index ¶
func (s *LocalIndexSearcher) Index(_ context.Context, _ *types.Repository) error
type Searcher ¶
type Searcher interface {
Search(ctx context.Context, repoIDs []int64, query string, enableRegex bool, maxResultCount int) (
types.SearchResult, error)
}
func ProvideSearcher ¶
func ProvideSearcher(l *LocalIndexSearcher) Searcher
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is responsible for indexing of repository for keyword search.
func NewService ¶
func ProvideService ¶
Click to show internal directories.
Click to hide internal directories.