Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferSize = NumWorkers
BufferSize defines the size of the job buffer
View Source
var ErrNotDir = errors.New("Not a directory")
ErrNotDir indicates that the path, which is being passed to a walker function, does not point to a directory
View Source
var NumWorkers = runtime.NumCPU() * 2
NumWorkers defines how many workers to run on each Walk() function invocation
Functions ¶
Types ¶
type Walker ¶
type Walker struct {
// contains filtered or unexported fields
}
Walker is constructed for each Walk() function invocation
type WalkerError ¶
type WalkerError struct {
// contains filtered or unexported fields
}
WalkerError struct stores individual errors reported from each worker routine
func (WalkerError) Error ¶
func (we WalkerError) Error() string
Implement the error interface for WalkerError
type WalkerErrorList ¶
type WalkerErrorList struct {
ErrorList []WalkerError
}
WalkerErrorList struct store a list of errors reported from all worker routines
func (WalkerErrorList) Error ¶
func (wel WalkerErrorList) Error() string
Implement the error interface fo WalkerErrorList
Click to show internal directories.
Click to hide internal directories.