finder

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchAndDeleteFileOnDisk

func SearchAndDeleteFileOnDisk(dir string, d time.Duration, size int64)

Types

type DataQueue

type DataQueue []matchDataChunk

func (DataQueue) Len

func (d DataQueue) Len() int

func (DataQueue) Less

func (d DataQueue) Less(i, j int) bool

func (DataQueue) Swap

func (d DataQueue) Swap(i, j int)

type Finder

type Finder struct {
	// contains filtered or unexported fields
}

func NewFinder

func NewFinder(maxRows uint64, filter func(os.FileInfo) bool) *Finder

func (*Finder) Count

func (fd *Finder) Count() uint64

func (*Finder) GetErrors

func (fd *Finder) GetErrors() []error

func (*Finder) Search

func (fd *Finder) Search(root string, expr string, data *[]byte, page, pagesize int) error

Jump to

Keyboard shortcuts

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