Discover Packages
github.com/erikh/overmount
progress
package
Version:
v0.0.0-...-fe7c145
Opens a new window with list of versions in this module.
Published: Mar 24, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Reader struct {
C chan *Tick
}
Reader is a progress-aware reader that communicates its results over channel
C. Channel C can then be read for information about the progress of the copy.
NewReader creates a new reader for use, wrapping an io.Reader with a
reporting duration and artifact information.
Close closes the reader and channel.
Read bytes from the reader, reporting progress to the channel as data arrives.
Tick is the information supplied to the consumer when progress events arrive
such as reaching an interval. The time of the event is also recorded.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.