Documentation ¶
Index ¶
Constants ¶
View Source
const BatchSize = 100_000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WriteCounter ¶
type WriteCounter struct {
// contains filtered or unexported fields
}
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
func NewWriteCounter ¶
func NewWriteCounter(total int) *WriteCounter
NewWriteCounter is a constructor for WriteCounter type.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.