sha1

package
v1.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sha1 provides resumable sha1 hashes based on the standard go library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResumableHash

type ResumableHash interface {
	hash.Hash
	fmt.Stringer
	Copy() (ResumableHash, error)
}

ResumableHash is the intefrace for a hash that can be stored and copied.

Unlike hash implementations in the standard library, it does not implement the encoding.BinaryMarshaler and encoding.BinaryUnmarshaler interfaces; however, it does provide a method for creating a copy of the underlying hash. This allows the hash to be stored, duplicated, and resumed at a later time. For convenience, it also provides a standard method for converting the hash into a string.

func New

func New() ResumableHash

New returns a new ResumableHash computing the SHA1 checksum.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL