searcher

package
v62.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(db *storm.DB, piratebayURL string, results chan Searchresult, searchInterval time.Duration, m Searchmetrics)

Start starts the searcher that periodically searches for shows

Types

type Searchmetrics

type Searchmetrics struct {
	Enabled        bool
	Searches       prometheus.Counter
	FailedSearches prometheus.Counter
	SearchResults  prometheus.Counter
}

Searchmetrics contains everything related to metrics

type Searchresult

type Searchresult struct {
	Title      string
	Magnetlink string
	Vipuser    bool
	Seeders    int
	ShowID     string
}

Searchresult contains everything needed to make an informed download decision

Jump to

Keyboard shortcuts

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