Documentation
¶
Index ¶
- Constants
- func CheckTorrentAllMatch(ctx context.Context, t *config.Torrent, expressions []CompiledExpression) (bool, error)
- func CheckTorrentAllMatchWithReason(ctx context.Context, t *config.Torrent, expressions []CompiledExpression) (bool, []string, error)
- func CheckTorrentSingleMatch(ctx context.Context, t *config.Torrent, expressions []CompiledExpression) (bool, error)
- func CheckTorrentSingleMatchWithReason(ctx context.Context, t *config.Torrent, expressions []CompiledExpression) (bool, string, error)
- type CompiledExpression
- type Expressions
- type LabelExpression
- type TagExpression
Constants ¶
View Source
const ( TagModeAdd = "add" TagModeRemove = "remove" TagModeFull = "full" )
Variables ¶
This section is empty.
Functions ¶
func CheckTorrentAllMatch ¶
func CheckTorrentAllMatchWithReason ¶ added in v1.14.0
func CheckTorrentSingleMatch ¶
func CheckTorrentSingleMatchWithReason ¶ added in v1.14.0
Types ¶
type CompiledExpression ¶ added in v1.14.0
type Expressions ¶
type Expressions struct {
Ignores []CompiledExpression
Removes []CompiledExpression
Pauses []CompiledExpression
Labels []*LabelExpression
Tags []*TagExpression
}
func Compile ¶
func Compile(filter *config.FilterConfiguration) (*Expressions, error)
type LabelExpression ¶
type LabelExpression struct {
Name string
Updates []CompiledExpression
}
type TagExpression ¶
type TagExpression struct {
Name string
Mode string
UploadKb *int
Updates []CompiledExpression
}
Click to show internal directories.
Click to hide internal directories.