Documentation ¶
Index ¶
Constants ¶
View Source
const MessageName = "process_torrent"
Variables ¶
This section is empty.
Functions ¶
func NewQueueJob ¶ added in v0.7.0
func NewQueueJob(msg MessageParams, options ...model.QueueJobOption) (model.QueueJob, error)
Types ¶
type ClassifyMode ¶
type ClassifyMode int
const ( // ClassifyModeDefault will use any pre-existing content match as a hint // This is the most common use case and will only attempt to match previously unmatched torrents ClassifyModeDefault ClassifyMode = iota // ClassifyModeRematch will ignore any pre-existing classification and always classify from scratch // This is useful if there are errors in matches from an earlier version that need to be corrected ClassifyModeRematch )
type Config ¶ added in v0.9.2
type Config struct {
Concurrency uint
}
func NewDefaultConfig ¶ added in v0.9.2
func NewDefaultConfig() Config
type MessageParams ¶
type MessageParams struct { ClassifyMode ClassifyMode ClassifierWorkflow string ClassifierFlags classifier.Flags InfoHashes []protocol.ID }
type MissingHashesError ¶
func (MissingHashesError) Error ¶
func (e MissingHashesError) Error() string
Click to show internal directories.
Click to hide internal directories.