Documentation
¶
Index ¶
- type Postie
- func (p *Postie) CleanupPar2Files(ctx context.Context, sourceFile fileinfo.FileInfo)
- func (p *Postie) Close()
- func (p *Postie) ExecutePostUploadScript(ctx context.Context, nzbPath string, itemID string) error
- func (p *Postie) Post(ctx context.Context, files []fileinfo.FileInfo, rootDir string, ...) (string, error)
- type QueueInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postie ¶
type Postie struct {
// contains filtered or unexported fields
}
func (*Postie) CleanupPar2Files ¶ added in v0.0.29
CleanupPar2Files removes PAR2 files for the given source file This method can be called when a job fails permanently to clean up orphaned PAR2 files
func (*Postie) ExecutePostUploadScript ¶ added in v0.0.29
ExecutePostUploadScript executes the post-upload script for a completed item This should be called after the file has been marked as completed in the database
type QueueInterface ¶ added in v0.0.29
type QueueInterface interface {
UpdateScriptStatus(ctx context.Context, itemID string, status string, retryCount int, lastError string, nextRetryAt *time.Time, firstFailureAt *time.Time) error
MarkScriptCompleted(ctx context.Context, itemID string) error
}
QueueInterface defines the queue methods needed by Postie
Click to show internal directories.
Click to hide internal directories.