Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Config *config.Config
Logger *logger.Logger
// High-level interfaces for services to use
NNTP NNTPManager
Processor Processor
ExtractionEnabled bool
}
Context hold the core environment and shared resources for GoNZB. It acts as the "Single Source of Truth" for the application state.
type NNTPManager ¶
type Processor ¶
type Processor interface {
// This allows the engine to trigger repair/extract without importing processor
Prepare(nzbModel *nzb.Model) ([]*nzb.DownloadFile, error)
Finalize(ctx context.Context, tasks []*nzb.DownloadFile) error
PostProcess(ctx context.Context, tasks []*nzb.DownloadFile) error
}
Click to show internal directories.
Click to hide internal directories.