handler

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 24 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 Indexer

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

func NewIndexers

func NewIndexers(redis *cache.Redis, metrics *monitoring.Metrics, req *requester.Requster, si *meilisearch.SearchIndexer) *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)

func (*Indexer) HandlerManualIndexer added in v0.5.0

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

func (*Indexer) HandlerTorrentDosFilmesIndexer added in v0.7.0

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

type IndexerMeta

type IndexerMeta struct {
	URL       string
	SearchURL string
}

type ManualIndexerRequest added in v0.5.0

type ManualIndexerRequest struct {
	MagnetLink string `json:"magnetLink"`
}

type MeilisearchHandler added in v0.8.0

type MeilisearchHandler struct {
	Module *meilisearch.SearchIndexer
}

MeilisearchHandler handles HTTP requests for Meilisearch integration.

func NewMeilisearchHandler added in v0.8.0

func NewMeilisearchHandler(module *meilisearch.SearchIndexer) *MeilisearchHandler

NewMeilisearchHandler creates a new instance of MeilisearchHandler.

func (*MeilisearchHandler) SearchTorrentHandler added in v0.8.0

func (h *MeilisearchHandler) SearchTorrentHandler(w http.ResponseWriter, r *http.Request)

SearchTorrentHandler handles the searching of torrent items.

type Response

type Response struct {
	Results []schema.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