Documentation
¶
Index ¶
- 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 SearchRequest) ([]*domain.Release, error)
- type SearchRequest
- type SearchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 SearchRequest) ([]*domain.Release, error)
CHANGED: structured search request path for real Newznab movie/tvsearch support.
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.