par2

package
v0.0.0-...-4deb2f9 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissing = errors.New("par2: file missing")

Functions

This section is empty.

Types

type File

type File struct {
	Name string
	// contains filtered or unexported fields
}

type FileMatch

type FileMatch struct {
	Err  error
	Path string
	File *File
	// contains filtered or unexported fields
}

type Fileset

type Fileset struct {
	// contains filtered or unexported fields
}

func NewFileset

func NewFileset(r io.Reader) *Fileset

NewFileset reads r and returns a Fileset that can be used for verification and recovery of the files.

func (*Fileset) CanVerify

func (f *Fileset) CanVerify() bool

CanVerify returns whether the current fileset can be used for verification.

func (*Fileset) Verify

func (f *Fileset) Verify(paths []string) ([]*FileMatch, int)

Verify verifies the files at paths against the fileset. It returns a list of matches and how many blocks are needed in order to repair.

Jump to

Keyboard shortcuts

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