hash

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreationWorker

func CreationWorker(requests <-chan CreateRequest, responses chan<- CreateResponse)

func Hash

func Hash(filename string) (string, error)

func VerifyWorker

func VerifyWorker(requests <-chan VerifyRequest, responses chan<- VerifyResponse)

Types

type CreateRequest

type CreateRequest struct {
	BasePath     string
	RelativePath string
}

type CreateResponse

type CreateResponse struct {
	RelativePath string
	Hash         string
	Error        error
}

type VerifyRequest

type VerifyRequest struct {
	BasePath     string
	RelativePath string
	Size         int64
	ModTime      time.Time
	Hash         string
}

type VerifyResponse

type VerifyResponse struct {
	RelativePath string
	Error        error
}

Jump to

Keyboard shortcuts

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