processor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closeable

type Closeable interface {
	CloseFile(path string, finalSize int64) error
	PreAllocate(path string, size int64) error
}

type FileProcessor

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

func NewFileProcessor

func NewFileProcessor(l *logger.Logger, ex *extraction.Manager, w Closeable, downloadCfg *config.DownloadConfig) *FileProcessor

func (*FileProcessor) Finalize

func (p *FileProcessor) Finalize(ctx context.Context, tasks []*domain.DownloadFile) error

Finalize renames .part to final names

func (*FileProcessor) PostProcess added in v0.2.0

func (p *FileProcessor) PostProcess(ctx context.Context, tasks []*domain.DownloadFile) error

PostProcess handles the modular repair and extraction logic

func (*FileProcessor) Prepare

func (p *FileProcessor) Prepare(nzb *domain.NZB) ([]*domain.DownloadFile, error)

Prepare sanitizes names and creates sparse files. Returns our internal Tasks.

Jump to

Keyboard shortcuts

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