Lines Matching defs:Finder

148 type Finder struct {  struct
150 DbPath string
151 numDbLoadingThreads int
152 numSearchingThreads int
153 cacheMetadata cacheMetadata
154 logger Logger
155 filesystem fs.FileSystem
158 threadPool *threadPool
159 mutex sync.Mutex
160 fsErrs []fsErr
161 errlock sync.Mutex
162 shutdownWaitgroup sync.WaitGroup
165 modifiedFlag int32
166 nodes pathMap
227 func (f *Finder) FindAll() []string {
232 func (f *Finder) FindAt(rootDir string) []string {
240 func (f *Finder) FindNamed(fileName string) []string {
247 func (f *Finder) FindNamedAt(rootPath string, fileName string) []string {
263 func (f *Finder) FindFirstNamed(fileName string) []string {
269 func (f *Finder) FindFirstNamedAt(rootPath string, fileName string) []string {
290 func (f *Finder) FindMatching(rootPath string, filter WalkFunc) []string {
334 func (f *Finder) Shutdown() {
339 func (f *Finder) WaitForDbDump() {
345 func (f *Finder) goDumpDb() {
375 func (f *Finder) verbosef(format string, args ...interface{}) {
380 func (f *Finder) loadFromFilesystem() {
393 func (f *Finder) startFind(path string) {
401 func (f *Finder) lock() {
405 func (f *Finder) unlock() {
655 func (f *Finder) serializeCacheEntry(dirInfos []dirFullInfo) ([]byte, error) {
704 func (f *Finder) parseCacheEntry(bytes []byte) ([]dirFullInfo, error) {
750 func (f *Finder) readLine(reader *bufio.Reader) ([]byte, error) {
755 func (f *Finder) validateCacheHeader(cacheReader *bufio.Reader) bool {
796 func (f *Finder) loadBytes(id int, data []byte) (m *pathMap, dirsToWalk []string, err error) {
845 func (f *Finder) startFromExternalCache() (err error) {
1013 func (f *Finder) startWithoutExternalCache() {
1049 func (f *Finder) isInfoUpToDate(old statResponse, new statResponse) (equal bool) {
1062 func (f *Finder) wasModified() bool {
1066 func (f *Finder) setModified() {
1073 func (f *Finder) sortedDirEntries() []dirFullInfo {
1094 func (f *Finder) serializeDb() ([]byte, error) {
1159 func (f *Finder) dumpDb() error {
1187 func (f *Finder) canIgnoreFsErr(err error) bool {
1208 func (f *Finder) onFsError(path string, err error) {
1222 func (f *Finder) discardErrsForPrunedPaths() {
1239 func (f *Finder) getErr() error {
1258 func (f *Finder) statDirAsync(dir *pathMap) {
1281 func (f *Finder) statDirSync(path string) statResponse {
1321 func (f *Finder) shouldIncludeFile(fileName string) bool {
1336 func (f *Finder) pruneCacheCandidates(items *DirEntries) {
1379 func (f *Finder) listDirsAsync(nodes []*pathMap) {
1389 func (f *Finder) listDirAsync(node *pathMap) {
1397 func (f *Finder) listDirSync(dir *pathMap) {
1476 func (f *Finder) listMatches(node *pathMap,
1505 func (f *Finder) findInCacheMultithreaded(node *pathMap, filter WalkFunc,
1546 func (f *Finder) findInCacheSinglethreaded(node *pathMap, filter WalkFunc) []string {