Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressFunc ¶
type ProgressFunc func(file string, progresstype ProgressType, progress, totalsize uint64, timest time.Time)
type ProgressType ¶
type ProgressType int
const ( PTProgress ProgressType = iota PTStart PTEnd )
func (ProgressType) String ¶
func (pt ProgressType) String() string
type ProgressWriter ¶
type ProgressWriter struct {
// contains filtered or unexported fields
}
func NewProgressWriter ¶
func NewProgressWriter(archfile string, filesize uint64, w io.Writer, cb ProgressFunc) *ProgressWriter
func (*ProgressWriter) Chunksize ¶
func (upw *ProgressWriter) Chunksize() (n int)
func (*ProgressWriter) SetChunksize ¶
func (upw *ProgressWriter) SetChunksize(size int)
Click to show internal directories.
Click to hide internal directories.