handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerIndex

func HandlerIndex(w http.ResponseWriter, r *http.Request)

Types

type IndexedTorrent

type IndexedTorrent struct {
	Title         string         `json:"title"`
	OriginalTitle string         `json:"original_title"`
	Details       string         `json:"details"`
	Year          string         `json:"year"`
	IMDB          string         `json:"imdb"`
	Audio         []schema.Audio `json:"audio"`
	MagnetLink    string         `json:"magnet_link"`
	Date          time.Time      `json:"date"`
	InfoHash      string         `json:"info_hash"`
	Trackers      []string       `json:"trackers"`
	Size          string         `json:"size"`
	LeechCount    int            `json:"leech_count"`
	SeedCount     int            `json:"seed_count"`
	Similarity    float32        `json:"similarity"`
}

type Indexer

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

func NewIndexers

func NewIndexers(redis *cache.Redis, metrics *monitoring.Metrics) *Indexer

func (*Indexer) HandlerBluDVIndexer

func (i *Indexer) HandlerBluDVIndexer(w http.ResponseWriter, r *http.Request)

func (*Indexer) HandlerComandoIndexer

func (i *Indexer) HandlerComandoIndexer(w http.ResponseWriter, r *http.Request)

type IndexerMeta

type IndexerMeta struct {
	URL       string
	SearchURL string
}

type Response

type Response struct {
	Results []IndexedTorrent `json:"results"`
	Count   int              `json:"count"`
}

Jump to

Keyboard shortcuts

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