Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB = 1024 MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueStats ¶
type QueueStats struct { Version string // Sabnzbd Version Paused bool // Is the sabnzbd queue globally paused? PausedAll bool // Paused All actions which causes disk activity PauseDuration time.Duration // Duration sabnzbd will remain paused DownloadDirDiskspaceUsed float64 // Download Directory Used in bytes DownloadDirDiskspaceTotal float64 // Download Directory Total in bytes CompletedDirDiskspaceUsed float64 // Completed Directory Used in bytes CompletedDirDiskspaceTotal float64 // Completed Directory Total in bytes SpeedLimit float64 // The Speed Limit set as a percentage of configured line speed SpeedLimitAbs float64 // The Speed Limit set in B/s HaveWarnings float64 // Number of Warnings present Quota float64 // Total Quota configured Bytes HaveQuota bool // Is a Periodic Quota set for Sabnzbd? RemainingQuota float64 // Quota Remaining Bytes CacheArt float64 // Number of Articles in Cache CacheSize float64 // Size of Cache in bytes Speed float64 // Float String representing bps RemainingSize float64 // Bytes left to download in queue Size float64 // total bytes represented by queue ItemsInQueue float64 // Total number of items in queue Status Status // Status of sabnzbd (1 = Idle, 2 = Paused, 3 = Downloading) TimeEstimate time.Duration // Estimated time remaining to download queue }
QueueStatsResponse is the response from the sabnzbd queue endpoint Paused vs PausedAll -- as best I can tell, Paused is "pause the queue but finish anything in flight" PausedAll is "hard pause, including pausing in progress downloads"
func (*QueueStats) UnmarshalJSON ¶
func (q *QueueStats) UnmarshalJSON(data []byte) error
type ServerStat ¶
type ServerStat struct { Total int // Total Data Downloaded in bytes ArticlesTried int // Number of Articles Tried ArticlesSuccess int // Number of Articles Successfully Downloaded DayParsed string // Last Date Parsed }
func (*ServerStat) UnmarshalJSON ¶
func (s *ServerStat) UnmarshalJSON(data []byte) error
type ServerStats ¶
type ServerStats struct { Total int `json:"total"` // Total Data Downloaded in bytes Servers map[string]ServerStat `json:"servers"` }
Click to show internal directories.
Click to hide internal directories.