Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashReader ¶
HashReader implements the etag.Reader interface by reading from an io.Reader and calculating the ETag with a hash.Hash.
func NewHashReader ¶
func NewHashReader(r io.Reader, h hash.Hash) *HashReader
NewHashReader returns a new HashReader reading from r and calculating the ETag with h.
func (*HashReader) CurrentETag ¶
func (r *HashReader) CurrentETag() []byte
CurrentETag returns the ETag for the content that has already been read from the reader.
Click to show internal directories.
Click to hide internal directories.