Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
FileSize int64
Fn func(int64)
TotalReported int64
Err error
IsClosed bool
sync.Mutex
// contains filtered or unexported fields
}
func NewTracker ¶
TODO: panic on FileSize==0?
func (*Tracker) NewWriter ¶
func (tra *Tracker) NewWriter(orig io.WriteSeeker) WriteSeekCloser
func (*Tracker) SetOverhead ¶
type WriteSeekCloser ¶
type WriteSeekCloser interface {
io.WriteSeeker
io.Closer
}
Click to show internal directories.
Click to hide internal directories.