• Home
  • Raw
  • Download

Lines Matching defs:Finder

141 type Finder struct {  struct
143 DbPath string
144 numDbLoadingThreads int
145 numSearchingThreads int
146 cacheMetadata cacheMetadata
147 logger Logger
148 filesystem fs.FileSystem
151 threadPool *threadPool
152 mutex sync.Mutex
153 fsErrs []fsErr
154 errlock sync.Mutex
155 shutdownWaitgroup sync.WaitGroup
158 modifiedFlag int32
159 nodes pathMap
220 func (f *Finder) FindAll() []string {
225 func (f *Finder) FindAt(rootDir string) []string {
233 func (f *Finder) FindNamed(fileName string) []string {
240 func (f *Finder) FindNamedAt(rootPath string, fileName string) []string {
256 func (f *Finder) FindFirstNamed(fileName string) []string {
262 func (f *Finder) FindFirstNamedAt(rootPath string, fileName string) []string {
283 func (f *Finder) FindMatching(rootPath string, filter WalkFunc) []string {
327 func (f *Finder) Shutdown() {
333 func (f *Finder) goDumpDb() {
348 func (f *Finder) waitForDbDump() {
367 func (f *Finder) verbosef(format string, args ...interface{}) {
372 func (f *Finder) loadFromFilesystem() {
385 func (f *Finder) startFind(path string) {
393 func (f *Finder) lock() {
397 func (f *Finder) unlock() {
647 func (f *Finder) serializeCacheEntry(dirInfos []dirFullInfo) ([]byte, error) {
696 func (f *Finder) parseCacheEntry(bytes []byte) ([]dirFullInfo, error) {
742 func (f *Finder) readLine(reader *bufio.Reader) ([]byte, error) {
747 func (f *Finder) validateCacheHeader(cacheReader *bufio.Reader) bool {
788 func (f *Finder) loadBytes(id int, data []byte) (m *pathMap, dirsToWalk []string, err error) {
837 func (f *Finder) startFromExternalCache() (err error) {
1004 func (f *Finder) startWithoutExternalCache() {
1040 func (f *Finder) isInfoUpToDate(old statResponse, new statResponse) (equal bool) {
1053 func (f *Finder) wasModified() bool {
1057 func (f *Finder) setModified() {
1064 func (f *Finder) sortedDirEntries() []dirFullInfo {
1085 func (f *Finder) serializeDb() ([]byte, error) {
1150 func (f *Finder) dumpDb() error {
1178 func (f *Finder) canIgnoreFsErr(err error) bool {
1199 func (f *Finder) onFsError(path string, err error) {
1213 func (f *Finder) discardErrsForPrunedPaths() {
1230 func (f *Finder) getErr() error {
1249 func (f *Finder) statDirAsync(dir *pathMap) {
1272 func (f *Finder) statDirSync(path string) statResponse {
1313 func (f *Finder) pruneCacheCandidates(items *DirEntries) {
1360 func (f *Finder) listDirsAsync(nodes []*pathMap) {
1370 func (f *Finder) listDirAsync(node *pathMap) {
1378 func (f *Finder) listDirSync(dir *pathMap) {
1444 func (f *Finder) listMatches(node *pathMap,
1473 func (f *Finder) findInCacheMultithreaded(node *pathMap, filter WalkFunc,
1514 func (f *Finder) findInCacheSinglethreaded(node *pathMap, filter WalkFunc) []string {