Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaderTransfer ¶
type ReaderTransfer struct {
// contains filtered or unexported fields
}
ReaderTransfer monitors how much of a reader has been read
func NewReaderTransfer ¶
func NewReaderTransfer(reader io.Reader, length int) *ReaderTransfer
NewReaderTransfer instantiates a ReadTransfer struct
func (*ReaderTransfer) Length ¶
func (rt *ReaderTransfer) Length() ByteSize
func (*ReaderTransfer) Transferred ¶
func (rt *ReaderTransfer) Transferred() ByteSize
type WriteCloserTransfer ¶
type WriteCloserTransfer struct {
// contains filtered or unexported fields
}
WriteCloserTransfer monitors how much of a WriteCloser has been written
func NewWriteCloserTransfer ¶
func NewWriteCloserTransfer(writeCloser io.WriteCloser, length int) *WriteCloserTransfer
NewWriteCloserTransfer instantiates a new WriteCloserTransfer
func (*WriteCloserTransfer) Close ¶
func (wct *WriteCloserTransfer) Close() error
func (*WriteCloserTransfer) Length ¶
func (wct *WriteCloserTransfer) Length() ByteSize
func (*WriteCloserTransfer) Transferred ¶
func (wct *WriteCloserTransfer) Transferred() ByteSize
Click to show internal directories.
Click to hide internal directories.