Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SizeReadWriter ¶
type SizeReadWriter struct {
// contains filtered or unexported fields
}
SizeReadWriter implements io methods keeping total size metrics.
func NewSizeReadWriter ¶
func NewSizeReadWriter(rdr io.Reader, writer io.Writer) *SizeReadWriter
NewSizeReadWriter constructs a read/writer with size metrics.
func (*SizeReadWriter) Read ¶
func (s *SizeReadWriter) Read(p []byte) (n int, err error)
Read reads data from the source.
func (*SizeReadWriter) TotalSize ¶
func (s *SizeReadWriter) TotalSize() uint64
TotalSize returns the total amount of data transferred.
Click to show internal directories.
Click to hide internal directories.