Versions in this module Expand all Collapse all v0 v0.9.2 Jul 3, 2019 Changes in this version + type Bool bool + func (bit *Bool) UnmarshalJSON(b []byte) error v0.9.1 Jul 1, 2019 Changes in this version + const AddMagnet + const AddTorrentFile + const AddTorrentURL + const AuthLogin + const GeHosts + const GetAllTorrents + const GetTorrentStat + const HostStatus + type Backend struct + Addr string + ID string + Prot string + type Config struct + DebugLog func(msg string, fmt ...interface{}) + HTTPPass string + HTTPUser string + Password string + Timeout Duration + URL string + VerifySSL bool + Version string + type Deluge struct + Backends map[string]Backend + DebugLog func(msg string, fmt ...interface{}) + URL string + Version string + func New(config Config) (*Deluge, error) + func (d *Deluge) Log(msg string, fmt ...interface{}) + func (d *Deluge) Login(password string) error + func (d Deluge) DelReq(method string, params interface{}) (req *http.Request, err error) + func (d Deluge) Get(method string, params interface{}) (*Response, error) + func (d Deluge) GetXfers() (map[string]*XferStatus, error) + func (d Deluge) GetXfersCompat() (map[string]*XferStatusCompat, error) + type Duration struct + func (d *Duration) UnmarshalText(data []byte) (err error) + type Response struct + Error struct{ ... } + ID int64 + Result json.RawMessage + type XferStatus struct + ActiveTime int64 + AllTimeDownload int64 + Comment string + Compact bool + DistributedCopies float64 + DownloadPayloadRate int64 + Eta json.Number + FilePriorities []int + FileProgress []float64 + Files []struct{ ... } + Hash string + IsAutoManaged bool + IsFinished bool + IsSeed bool + Label string + MaxConnections int64 + MaxDownloadSpeed int64 + MaxUploadSlots int64 + MaxUploadSpeed int64 + Message string + MoveCompleted bool + MoveCompletedPath string + MoveOnCompleted bool + MoveOnCompletedPath string + Name string + NextAnnounce int64 + NumFiles int64 + NumPeers int64 + NumPieces int64 + NumSeeds int64 + Paused bool + Peers []interface{} + PieceLength int64 + PrioritizeFirstLast bool + Private bool + Progress float64 + Queue int64 + Ratio float64 + RemoveAtRatio bool + SavePath string + SeedRank int64 + SeedingTime int64 + SeedsPeersRatio float64 + State string + StopAtRatio bool + StopRatio float64 + TimeAdded float64 + TotalDone int64 + TotalPayloadDownload int64 + TotalPayloadUpload int64 + TotalPeers int64 + TotalSeeds int64 + TotalSize int64 + TotalUploaded int64 + TotalWanted int64 + Tracker string + TrackerHost string + TrackerStatus string + Trackers []struct{ ... } + UploadPayloadRate int64 + type XferStatus2 struct + ActiveTime float64 + AllTimeDownload float64 + AutoManaged bool + Comment string + CompletedTime float64 + Creator string + DistributedCopies float64 + DownloadLocation string + DownloadPayloadRate float64 + Eta json.Number + FilePriorities []int + FileProgress []float64 + Files []struct{ ... } + FinishedTime float64 + Hash string + IsAutoManaged bool + IsFinished bool + IsSeed bool + LastSeenComplete float64 + MaxConnections float64 + MaxDownloadSpeed float64 + MaxUploadSlots float64 + MaxUploadSpeed float64 + Message string + MoveCompleted bool + MoveCompletedPath string + MoveOnCompleted bool + MoveOnCompletedPath string + Name string + NextAnnounce float64 + NumFiles float64 + NumPeers int64 + NumPieces float64 + NumSeeds int64 + OrigFiles []struct{ ... } + Owner string + Paused bool + Peers []interface{} + PieceLength float64 + Pieces interface{} + PrioritizeFirstLast bool + PrioritizeFirstLastPieces bool + Private bool + Progress float64 + Queue int + Ratio float64 + RemoveAtRatio bool + SavePath string + SeedMode bool + SeedRank int + SeedingTime float64 + SeedsPeersRatio float64 + SequentialDownload bool + Shared bool + State string + StopAtRatio bool + StopRatio float64 + StorageMode string + SuperSeeding bool + TimeAdded float64 + TimeSinceDownload float64 + TimeSinceTransfer float64 + TimeSinceUpload float64 + TotalDone float64 + TotalPayloadDownload float64 + TotalPayloadUpload float64 + TotalPeers int64 + TotalRemaining float64 + TotalSeeds float64 + TotalSize float64 + TotalUploaded float64 + TotalWanted float64 + Tracker string + TrackerHost string + TrackerStatus string + Trackers []struct{ ... } + UploadPayloadRate float64 + type XferStatusCompat struct + ActiveTime float64 + AllTimeDownload float64 + AutoManaged bool + Comment string + CompletedTime float64 + Creator string + DistributedCopies float64 + DownloadLocation string + DownloadPayloadRate float64 + Eta json.Number + FilePriorities []int + FileProgress []float64 + Files []struct{ ... } + FinishedTime float64 + Hash string + IsAutoManaged bool + IsFinished bool + IsSeed bool + Label string + LastSeenComplete float64 + MaxConnections float64 + MaxDownloadSpeed float64 + MaxUploadSlots float64 + MaxUploadSpeed float64 + Message string + MoveCompleted bool + MoveCompletedPath string + MoveOnCompleted bool + MoveOnCompletedPath string + Name string + NextAnnounce float64 + NumFiles float64 + NumPeers int64 + NumPieces float64 + NumSeeds int64 + OrigFiles []struct{ ... } + Owner string + Paused bool + Peers []interface{} + PieceLength float64 + Pieces interface{} + PrioritizeFirstLast bool + PrioritizeFirstLastPieces bool + Private bool + Progress float64 + Queue int64 + Ratio float64 + RemoveAtRatio bool + SavePath string + SeedMode bool + SeedRank int + SeedingTime float64 + SeedsPeersRatio float64 + SequentialDownload bool + Shared bool + State string + StopAtRatio bool + StopRatio float64 + StorageMode string + SuperSeeding bool + TimeAdded float64 + TimeSinceDownload float64 + TimeSinceTransfer float64 + TimeSinceUpload float64 + TotalDone float64 + TotalPayloadDownload float64 + TotalPayloadUpload float64 + TotalPeers int64 + TotalRemaining float64 + TotalSeeds float64 + TotalSize float64 + TotalUploaded float64 + TotalWanted float64 + Tracker string + TrackerHost string + TrackerStatus string + Trackers []struct{ ... } + UploadPayloadRate float64