Documentation
¶
Index ¶
- type NzbConfig
- type NzbSystem
- func (ns *NzbSystem) Close() error
- func (ns *NzbSystem) Database() *database.DB
- func (ns *NzbSystem) FileSystem() afero.Fs
- func (ns *NzbSystem) GetDownloadWorkers() int
- func (ns *NzbSystem) GetImportWorkers() int
- func (ns *NzbSystem) GetQueueStats(ctx context.Context) (*database.QueueStats, error)
- func (ns *NzbSystem) GetServiceStats(ctx context.Context) (*importer.ServiceStats, error)
- func (ns *NzbSystem) GetStats() (*Stats, error)
- func (ns *NzbSystem) ImporterService() *importer.Service
- func (ns *NzbSystem) MetadataReader() *metadata.MetadataReader
- func (ns *NzbSystem) StartService(ctx context.Context) error
- func (ns *NzbSystem) StopService(ctx context.Context) error
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NzbConfig ¶
type NzbConfig struct {
QueueDatabasePath string
MetadataRootPath string // Path to metadata root directory
Password string // Global password for .bin files
Salt string // Global salt for .bin files
MaxProcessorWorkers int // Number of queue workers (default: 2)
MaxDownloadWorkers int // Number of download workers (default: 15)
}
NzbConfig holds configuration for the NZB system
type NzbSystem ¶
type NzbSystem struct {
// contains filtered or unexported fields
}
NzbSystem represents the complete NZB-backed filesystem
func NewNzbSystem ¶
func NewNzbSystem(config NzbConfig, poolManager pool.Manager, configGetter config.ConfigGetter, rcloneClient rclonecli.RcloneRcClient) (*NzbSystem, error)
NewNzbSystem creates a new NZB-backed virtual filesystem with metadata + queue architecture
func (*NzbSystem) FileSystem ¶
FileSystem returns the virtual filesystem interface
func (*NzbSystem) GetDownloadWorkers ¶
GetDownloadWorkers returns the current download worker count
func (*NzbSystem) GetImportWorkers ¶
GetImportWorkers returns the current import processor worker count
func (*NzbSystem) GetQueueStats ¶
GetQueueStats returns current queue statistics
func (*NzbSystem) GetServiceStats ¶
GetServiceStats returns service statistics including queue stats
func (*NzbSystem) ImporterService ¶
ImporterService returns the importer service instance
func (*NzbSystem) MetadataReader ¶
func (ns *NzbSystem) MetadataReader() *metadata.MetadataReader
MetadataReader returns the metadata reader instance (for serving files)
func (*NzbSystem) StartService ¶
StartService starts the NZB service (including background scanning and processing)