Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RollingHash ¶
type RollingHash struct {
// contains filtered or unexported fields
}
func NewRollingHash ¶
func NewRollingHash(chunkSize int) *RollingHash
NewRollingHash returns a new RollingHash struct
func (*RollingHash) ComputeDelta ¶
func (r *RollingHash) ComputeDelta(original, updated *os.File) ([]byte, error)
ComputeDelta generates a description of the differences between the original and updated versions of a file
func (*RollingHash) ComputeHashes ¶
func (r *RollingHash) ComputeHashes(file *os.File) ([]chunk, error)
ComputeHashes reads a file in chunks and computes the hash of each chunk using the SHA1 hash function
Click to show internal directories.
Click to hide internal directories.