processor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 8 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, w Closeable, outDir string) *FileProcessor

func (*FileProcessor) Finalize

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

Finalize renames .part to final names

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