Versions in this module Expand all Collapse all v0 v0.18.0 Nov 27, 2024 Changes in this version + func GetHash(name string) (hash.Hash, error) + type Compressor func(io.Writer) (io.WriteCloser, error) + func GetCompressor(name string) (Compressor, error) + type Hasher struct + func NewHasher(name string) (*Hasher, error) + func NewHasherReader(hash string, target io.Reader) (io.Reader, *Hasher, error) + func NewHasherReaders(hashes []string, target io.Reader) (io.Reader, []*Hasher, error) + func NewHasherWriter(hash string, target io.Writer) (io.Writer, *Hasher, error) + func NewHasherWriters(hashes []string, target io.Writer) (io.Writer, []*Hasher, error) + func (dh *Hasher) Name() string + func (dh *Hasher) Size() int64 + func (dh *Hasher) Sum(b []byte) []byte + func (dh *Hasher) Write(p []byte) (int, error)