fileprocessor

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFileSize

func ValidateFileSize(filePath string, maxSizeBytes int64) (bool, error)

ValidateFileSize checks if file is within size limits

Types

type ProcessOptions

type ProcessOptions struct {
	Timeout           time.Duration
	ValidateIntegrity bool
	MaxRetries        int
	EnableCaching     bool
}

func GetDefaultOptions

func GetDefaultOptions() ProcessOptions

GetDefaultOptions returns default processing options

type ProcessResult

type ProcessResult struct {
	FilePath           string
	Success            bool
	ProcessedAt        time.Time
	CacheHit           bool
	ProcessingDuration time.Duration
}

func ProcessBatch

func ProcessBatch(filePaths []string, options ProcessOptions) ([]*ProcessResult, error)

ProcessBatch processes multiple files

func ProcessFile

func ProcessFile(filePath string) (*ProcessResult, error)

ProcessFile processes a single file with given options

Jump to

Keyboard shortcuts

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