Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPar2File ¶
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) *Par2CmdExecutor
func (*Par2CmdExecutor) Create ¶
Repair executes the par2 command to repair files in the target folder.
func (*Par2CmdExecutor) SetProgressCallback ¶ added in v0.0.6
func (p *Par2CmdExecutor) SetProgressCallback(callback ProgressCallback)
SetProgressCallback sets the progress callback function
type Par2Executor ¶
type Par2Executor interface {
Create(ctx context.Context, tmpPath string) ([]string, error)
SetProgressCallback(callback ProgressCallback)
}
Par2Executor defines the interface for executing par2 commands.
Click to show internal directories.
Click to hide internal directories.