Documentation ¶
Index ¶
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- func ListBuiltins() ([]string, error)
- type Aggregate
- type DefinitionLoader
- type IndexerDefinition
- type IndexerDefinitionStats
- type Runner
- type RunnerOpts
- type Tester
- type TesterOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶ added in v1.7.0
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶ added in v1.7.0
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶ added in v1.7.0
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶ added in v1.7.0
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶ added in v1.7.0
FSMustString is the string version of FSMustByte.
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.0
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.8.6
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.8.5
func (id *IndexerDefinition) Stats() IndexerDefinitionStats
type IndexerDefinitionStats ¶ added in v1.8.5
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.0
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.