Documentation
¶
Index ¶
- type ActiveItemStats
- type AggregatorController
- type Attr
- type CapCategory
- type CapGenre
- type CapGroup
- type CapSubCat
- type Channel
- type CompatAPIController
- type DownloadEvent
- type Enclosure
- type EventStats
- type Limits
- type NewznabCaps
- type NewznabController
- type NewznabErrorResponse
- type NewznabRSS
- type QueueController
- func (ctrl *QueueController) Add(c *echo.Context) error
- func (ctrl *QueueController) Cancel(c *echo.Context) error
- func (ctrl *QueueController) CancelMany(c *echo.Context) error
- func (ctrl *QueueController) ClearHistory(c *echo.Context) error
- func (ctrl *QueueController) DeleteMany(c *echo.Context) error
- func (ctrl *QueueController) GetItem(c *echo.Context) error
- func (ctrl *QueueController) GetItemEvents(c *echo.Context) error
- func (ctrl *QueueController) GetItemFiles(c *echo.Context) error
- func (ctrl *QueueController) ListActive(c *echo.Context) error
- func (ctrl *QueueController) ListHistory(c *echo.Context) error
- type RSSGUID
- type RSSItem
- type Registration
- type Response
- type SABController
- type SearchCapability
- type Searching
- type ServerInfo
- type SettingsController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveItemStats ¶ added in v0.6.0
type AggregatorController ¶ added in v0.6.0
type AggregatorController struct {
Service aggregatorService
}
func NewAggregatorController ¶ added in v0.6.0
func NewAggregatorController(appCtx *app.Context) *AggregatorController
func (*AggregatorController) SearchReleases ¶ added in v0.6.0
func (ctrl *AggregatorController) SearchReleases(c *echo.Context) error
type CapCategory ¶
type CompatAPIController ¶ added in v0.6.0
type CompatAPIController struct {
SABEnabled bool
NewznabEnabled bool
SAB *SABController
Newznab *NewznabController
}
compatibility multiplexer for shared `/api` transport.
Dispatches by query intent: - `mode=...` => SAB-compatible downloader API - `t=...` => Newznab-compatible aggregator API
type DownloadEvent ¶ added in v0.6.0
type DownloadEvent struct {
Service downloadEventService
}
Event message structure for UI
func NewDownloadEvent ¶ added in v0.6.0
func NewDownloadEvent(appCtx *app.Context) *DownloadEvent
func (*DownloadEvent) HandleEvents ¶ added in v0.6.0
func (ctrl *DownloadEvent) HandleEvents(c *echo.Context) error
type EventStats ¶ added in v0.6.0
type EventStats struct {
Bps int64 `json:"bps"`
Progress float64 `json:"progress"`
ActiveJobs int `json:"active_jobs"`
ActiveItem *ActiveItemStats `json:"active_item,omitempty"`
}
type NewznabCaps ¶
type NewznabCaps struct {
XMLName xml.Name `xml:"caps"`
Server ServerInfo `xml:"server"`
Limits Limits `xml:"limits"`
Registration Registration `xml:"registration"`
Searching Searching `xml:"searching"`
Categories []CapCategory `xml:"categories>category"`
Groups []CapGroup `xml:"groups>group"`
Genres []CapGenre `xml:"genres>genre"`
}
-- CAPABILITIES (t=caps) ---
type NewznabController ¶
type NewznabController struct {
Service aggregatorService
}
func NewNewznabController ¶ added in v0.6.0
func NewNewznabController(appCtx *app.Context) *NewznabController
func (*NewznabController) Handle ¶
func (ctrl *NewznabController) Handle(c *echo.Context) error
Handle is the main Newznab entry point
func (*NewznabController) HandleDownload ¶
func (ctrl *NewznabController) HandleDownload(c *echo.Context) error
handleDownload serves the actual NZB file from cache or source
type NewznabErrorResponse ¶ added in v0.6.0
type NewznabRSS ¶
type NewznabRSS struct {
XMLName xml.Name `xml:"rss"`
Version string `xml:"version,attr"`
NS string `xml:"xmlns:newznab,attr"`
Channel Channel `xml:"channel"`
}
-- SEARCH RESULTS (t=search/tv/movie)
type QueueController ¶ added in v0.6.0
func (*QueueController) Add ¶ added in v0.6.0
func (ctrl *QueueController) Add(c *echo.Context) error
func (*QueueController) Cancel ¶ added in v0.6.0
func (ctrl *QueueController) Cancel(c *echo.Context) error
func (*QueueController) CancelMany ¶ added in v0.6.0
func (ctrl *QueueController) CancelMany(c *echo.Context) error
func (*QueueController) ClearHistory ¶ added in v0.6.0
func (ctrl *QueueController) ClearHistory(c *echo.Context) error
func (*QueueController) DeleteMany ¶ added in v0.6.0
func (ctrl *QueueController) DeleteMany(c *echo.Context) error
func (*QueueController) GetItem ¶ added in v0.6.0
func (ctrl *QueueController) GetItem(c *echo.Context) error
func (*QueueController) GetItemEvents ¶ added in v0.6.0
func (ctrl *QueueController) GetItemEvents(c *echo.Context) error
func (*QueueController) GetItemFiles ¶ added in v0.6.0
func (ctrl *QueueController) GetItemFiles(c *echo.Context) error
func (*QueueController) ListActive ¶ added in v0.6.0
func (ctrl *QueueController) ListActive(c *echo.Context) error
func (*QueueController) ListHistory ¶ added in v0.6.0
func (ctrl *QueueController) ListHistory(c *echo.Context) error
type Registration ¶ added in v0.6.0
type SABController ¶ added in v0.6.0
type SearchCapability ¶ added in v0.6.0
type Searching ¶ added in v0.6.0
type Searching struct {
Search SearchCapability `xml:"search"`
TVSearch SearchCapability `xml:"tv-search"`
Movie SearchCapability `xml:"movie-search"`
}
type ServerInfo ¶
type ServerInfo struct {
AppVersion string `xml:"appversion,attr,omitempty"`
Version string `xml:"version,attr"`
Title string `xml:"title,attr"`
Strapline string `xml:"strapline,attr,omitempty"`
Email string `xml:"email,attr,omitempty"`
URL string `xml:"url,attr,omitempty"`
Image string `xml:"image,attr,omitempty"`
}
type SettingsController ¶ added in v0.6.0
type SettingsController struct {
Service settingsService
}
func NewSettingsController ¶ added in v0.6.0
func NewSettingsController(appCtx *app.Context) *SettingsController
func (*SettingsController) GetSettings ¶ added in v0.6.0
func (ctrl *SettingsController) GetSettings(c *echo.Context) error
func (*SettingsController) UpdateSettings ¶ added in v0.6.0
func (ctrl *SettingsController) UpdateSettings(c *echo.Context) error
Click to show internal directories.
Click to hide internal directories.