searcher

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Searcher

type Searcher struct {
	Repo *config.Repo
	// contains filtered or unexported fields
}

func New

func New(vcsDir string, repo *config.Repo) (*Searcher, error)

Creates a new Searcher that is available for searches as soon as this returns. This will pull or clone the target repo and start watching the repo for changes.

func NewFromExisting

func NewFromExisting(vcsDir string, repo *config.Repo) (*Searcher, error)

Creates a new Searcher for the vcsDir but avoids any remote vcs operations. This requires that an existing vcsDir be available in the data directory. This is intended for debugging and testing only. This will not start a watcher to monitor the remote repo for changes.

func (*Searcher) GetExcludedFiles

func (s *Searcher) GetExcludedFiles() string

func (*Searcher) Search

func (s *Searcher) Search(pat string, opt *index.SearchOptions) (*index.SearchResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL