Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyReader can be returned when a reader provided to create file is empty. ErrEmptyReader = errors.New("empty reader") // ErrInvalidHash can be returned for invalid hash input. // Use only stringified hashes returned by this implementation. ErrInvalidHash = errors.New("invalid hash") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a dir wrapper to store files by their content hashes (SHA512).
Click to show internal directories.
Click to hide internal directories.