Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WalkCount = metric.NewCounter("Walk") WalkCallCount = metric.NewCounter("WalkCall") WalkDirCount = metric.NewCounter("WalkDir") WalkEntryCount = metric.NewCounter("WalkEntry") WalkExcludeCount = metric.NewCounter("WalkExclude") WalkExcludeErrCount = metric.NewCounter("WalkExcludeErr") )
Functions ¶
func GetPathFromMetadata ¶
func NewMetaData ¶
Types ¶
type FileWalker ¶
type FileWalker struct {
// contains filtered or unexported fields
}
FileWalker walks only files under the root.
func NewFile ¶
func NewFile(exclude expr.Expr) *FileWalker
func (FileWalker) Err ¶
func (w FileWalker) Err() error
type ReaderWalker ¶
type ReaderWalker struct {
// contains filtered or unexported fields
}
ReaderWalker receives paths from io.Reader and walks under them.
func (ReaderWalker) Err ¶
func (w ReaderWalker) Err() error
Click to show internal directories.
Click to hide internal directories.