par2

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPar2File

func IsPar2File(path string) bool

Types

type Par2CmdExecutor

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

Par2CmdExecutor implements Par2Executor using the command line.

func New

func New(ctx context.Context, articleSize uint64, cfg *config.Par2Config, jobProgress progress.JobProgress) *Par2CmdExecutor

func (*Par2CmdExecutor) Create

func (p *Par2CmdExecutor) Create(ctx context.Context, files []fileinfo.FileInfo) ([]string, error)

Repair executes the par2 command to repair files in the target folder.

type Par2Executor

type Par2Executor interface {
	Create(ctx context.Context, files []fileinfo.FileInfo) ([]string, error)
}

Par2Executor defines the interface for executing par2 commands.

Jump to

Keyboard shortcuts

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