Documentation
¶
Index ¶
- type BaseManager
- func (m *BaseManager) AddIndexer(idx Indexer)
- func (m *BaseManager) GetNZB(ctx context.Context, res *domain.Release) (io.ReadCloser, error)
- func (m *BaseManager) GetResultByID(ctx context.Context, id string) (*domain.Release, error)
- func (m *BaseManager) SearchAll(ctx context.Context, query string) ([]*domain.Release, error)
- type Indexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseManager ¶
type BaseManager struct {
// contains filtered or unexported fields
}
BaseManager is the concrete implementation of the Manager interface.
func NewManager ¶
func NewManager(s store, l logger) *BaseManager
NewManager initializes a new manager with a physical file store.
func (*BaseManager) AddIndexer ¶
func (m *BaseManager) AddIndexer(idx Indexer)
AddIndexer registers a new indexer (usually a CachedIndexer) to the manager.
func (*BaseManager) GetNZB ¶
func (m *BaseManager) GetNZB(ctx context.Context, res *domain.Release) (io.ReadCloser, error)
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 (*BaseManager) GetResultByID ¶
GetResultByID looks up a search result in the manager's memory
Click to show internal directories.
Click to hide internal directories.