feed

package
v0.0.0-...-12f948b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetch

type Fetch interface {
	Fetch() error
	Retry()
	Name() string
}

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

func NewFetcher

func NewFetcher(conf config.FeedsConfig, db db.DB) *Fetcher

func (*Fetcher) QueueFeed

func (f *Fetcher) QueueFeed(conf config.FeedConfig)

func (*Fetcher) QueueTorrent

func (f *Fetcher) QueueTorrent(url string)

func (*Fetcher) Run

func (f *Fetcher) Run(numWorkers int)

type Parser

type Parser interface {
	Decode(r io.Reader) ([]Torrent, error)
}

feed parser

type Torrent

type Torrent struct {
	URL      *url.URL
	InfoHash [20]byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL