package
0.5.1
Repository: https://github.com/etix/mirrorbits.git
Documentation: pkg.go.dev

# Functions

EvaluateFilePath sanitize and validate the file against the local repository.
HashFile generates a human readable hash of the given file path.
IsInRepository ensures that the given file path is contained in the repository.
NewFileInfo returns a new FileInfo object.
Sha256sum generates a human readable sha256 hash of the given file path.

# Variables

ErrOutsideRepo is returned when the target file is outside of the repository.

# Structs

FileInfo is a struct embedding details about a file served by the redirector.