Discover Packages
github.com/klauspost/restic
pipe
package
Version:
v0.0.0-...-17ee6b1
Opens a new window with list of versions in this module.
Published: Jul 27, 2015
License: BSD-2-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package pipe implements walking a directory in a deterministic order.
func Split(inChan <-chan Job , dirChan chan<- Dir , entChan chan<- Entry )
Split feeds all elements read from inChan to dirChan and entChan.
Walk sends a Job for each file and directory it finds below the paths. When
the channel done is closed, processing stops.
type Dir struct {
Entries [](<-chan Result )
}
type Entry struct {
Node interface{}
}
SelectFunc returns true for all items that should be included (files and
dirs). If false is returned, files are ignored and dirs are not even walked.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.