Versions in this module Expand all Collapse all v0 v0.1.0 Jul 10, 2026 Changes in this version + var ErrMissingFileDesc = errors.New("par2: missing file description packet") + var ErrNoMainPacket = errors.New("par2: no main packet found") + var ErrNoSliceSize = errors.New("par2: slice size is zero") + var ErrNotRepairable = errors.New("par2: not enough recovery slices to repair") + var ErrOddSliceSize = errors.New("par2: slice size must be non-zero") + type FileSpec struct + FullMD5 [16]byte + ID [16]byte + Length uint64 + Name string + Slices []SliceChecksum + type FileStatus struct + Damaged bool + MissingSlices []int + Name string + Present bool + type RecoverySet struct + Creator string + Files []FileSpec + Recovery []RecoverySlice + SliceSize uint64 + func Create(sliceSize uint64, files map[string][]byte, recoveryCount int) (*RecoverySet, error) + func Parse(blobs ...[]byte) (*RecoverySet, error) + func (rs *RecoverySet) Repair(files map[string][]byte) (map[string][]byte, error) + func (rs *RecoverySet) Verify(files map[string][]byte) (*VerifyResult, error) + type RecoverySlice struct + Data []byte + Exponent uint32 + type SliceChecksum struct + CRC32 uint32 + MD5 [16]byte + type VerifyResult struct + Complete bool + Files []FileStatus + Repairable bool