Documentation
¶
Index ¶
- Variables
- type DependencyProvider
- type Logger
- type Manager
- func (m *Manager) AddSource(src catalogSource)
- func (m *Manager) GetNZB(ctx context.Context, rel *domain.Release) (io.ReadCloser, error)
- func (m *Manager) GetResultByID(ctx context.Context, id string) (*domain.Release, error)
- func (m *Manager) SearchAll(ctx context.Context, query string) ([]*domain.Release, error)
- func (m *Manager) SearchAllWithRequest(ctx context.Context, req app.SearchRequest) ([]*domain.Release, error)
- type Module
- type SearchRequest
- type SearchType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrReleaseMissing = errors.New("release not found") )
Functions ¶
This section is empty.
Types ¶
type DependencyProvider ¶ added in v0.6.1
type DependencyProvider struct {
Aggregator func() app.IndexerAggregator
BlobStore func() app.BlobStore
Logger func() Logger
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddSource ¶
func (m *Manager) AddSource(src catalogSource)
AddSource registers a new nzb source to the manager.
func (*Manager) GetNZB ¶
GetNZB handles retrieving nzb from cache or downloading from an indexer. Returns io.ReaderCloser so it can returned as a HTTP response or parsed for download
func (*Manager) GetResultByID ¶
GetResultByID resolves a release by id. checks in-memory recent results first, then persistent store if enabled.
func (*Manager) SearchAllWithRequest ¶
func (m *Manager) SearchAllWithRequest(ctx context.Context, req app.SearchRequest) ([]*domain.Release, error)
CHANGED: structured search request path for real Newznab movie/tvsearch support.
type Module ¶ added in v0.6.1
type Module struct {
// contains filtered or unexported fields
}
func NewModule ¶ added in v0.6.1
func NewModule(provider DependencyProvider) *Module
func (*Module) PrepareDownload ¶ added in v0.6.1
type SearchRequest ¶
type SearchType ¶
type SearchType string
const ( SearchTypeGeneric SearchType = "search" SearchTypeMovie SearchType = "movie" SearchTypeTV SearchType = "tvsearch" )
Click to show internal directories.
Click to hide internal directories.