Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListBuiltins ¶ added in v1.8.1
Types ¶
type Aggregate ¶ added in v1.5.0
func (Aggregate) Capabilities ¶ added in v1.5.0
func (ag Aggregate) Capabilities() torznab.Capabilities
type DefinitionLoader ¶ added in v1.7.1
type DefinitionLoader interface {
List() ([]string, error)
Load(key string) (*IndexerDefinition, error)
}
var ( ErrUnknownIndexer = errors.New("Unknown indexer") DefaultDefinitionLoader DefinitionLoader )
type IndexerDefinition ¶
type IndexerDefinition struct {
Site string `yaml:"site"`
Settings []settingsField `yaml:"settings"`
Name string `yaml:"name"`
Description string `yaml:"description"`
Language string `yaml:"language"`
Links stringorslice `yaml:"links"`
Capabilities capabilitiesBlock `yaml:"caps"`
Login loginBlock `yaml:"login"`
Ratio ratioBlock `yaml:"ratio"`
Search searchBlock `yaml:"search"`
// contains filtered or unexported fields
}
func LoadEnabledDefinitions ¶ added in v1.9.1
func LoadEnabledDefinitions(conf config.Config) ([]*IndexerDefinition, error)
func ParseDefinition ¶
func ParseDefinition(src []byte) (*IndexerDefinition, error)
func ParseDefinitionFile ¶
func ParseDefinitionFile(f *os.File) (*IndexerDefinition, error)
func (*IndexerDefinition) Stats ¶ added in v1.9.1
func (id *IndexerDefinition) Stats() IndexerDefinitionStats
type IndexerDefinitionStats ¶ added in v1.9.1
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(def *IndexerDefinition, opts RunnerOpts) *Runner
func (*Runner) Capabilities ¶
func (r *Runner) Capabilities() torznab.Capabilities
type RunnerOpts ¶ added in v1.7.1
type RunnerOpts struct {
Config config.Config
CachePages bool
Transport http.RoundTripper
}
type Tester ¶ added in v1.3.0
type Tester struct {
Runner *Runner
Opts TesterOpts
Output io.Writer
}
type TesterOpts ¶ added in v1.3.0
type TesterOpts struct {
Download bool
}
Click to show internal directories.
Click to hide internal directories.