transmission

package
v0.0.0-...-646eaec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionGetBase = JsonMap{
	"alt-speed-down":               50,
	"alt-speed-enabled":            false,
	"alt-speed-time-begin":         540,
	"alt-speed-time-day":           127,
	"alt-speed-time-enabled":       false,
	"alt-speed-time-end":           1020,
	"alt-speed-up":                 50,
	"blocklist-enabled":            false,
	"blocklist-size":               393006,
	"blocklist-url":                "http://www.example.com/blocklist",
	"cache-size-mb":                4,
	"config-dir":                   "/var/lib/transmission-daemon",
	"idle-seeding-limit":           30,
	"idle-seeding-limit-enabled":   false,
	"queue-stalled-enabled":        true,
	"queue-stalled-minutes":        30,
	"rename-partial-files":         true,
	"rpc-version":                  15,
	"rpc-version-minimum":          1,
	"script-torrent-done-enabled":  false,
	"script-torrent-done-filename": "",
	"start-added-torrents":         true,
	"trash-original-torrent-files": false,
	"units": map[string]interface{}{
		"memory-bytes": 1024,
		"memory-units": []string{
			"KiB",
			"MiB",
			"GiB",
			"TiB",
		},
		"size-bytes": 1000,
		"size-units": []string{
			"kB",
			"MB",
			"GB",
			"TB",
		},
		"speed-bytes": 1000,
		"speed-units": []string{
			"kB/s",
			"MB/s",
			"GB/s",
			"TB/s",
		},
	},
	"version": "2.84 (14307)",
}
View Source
var SessionStatsTemplate = JsonMap{
	"current-stats": map[string]int64{
		"filesAdded":   13,
		"sessionCount": 1,
	},
}
View Source
var TorrentGetBase = JsonMap{
	"errorString":             "",
	"metadataPercentComplete": 1,
	"isFinished":              false,
	"queuePosition":           0,
	"seedRatioLimit":          2,
	"seedRatioMode":           0,
	"activityDate":            1443977197,
	"secondsDownloading":      500,
	"secondsSeeding":          80000,
	"isPrivate":               false,
	"honorsSessionLimits":     true,
	"webseedsSendingToUs":     0,
	"bandwidthPriority":       0,
	"seedIdleLimit":           10,
	"seedIdleMode":            0,
	"manualAnnounceTime":      0,
	"etaIdle":                 0,
	"torrentFile":             "",
	"webseeds":                []string{},
	"peers":                   []string{},
	"magnetLink":              "",
}
View Source
var TrackerStatsTemplate = JsonMap{
	"announceState":         0,
	"hasScraped":            false,
	"isBackup":              false,
	"lastAnnounceStartTime": 0,
	"lastAnnounceTime":      0,
	"lastAnnounceTimedOut":  false,
	"lastScrapeResult":      "",
	"lastScrapeStartTime":   0,
	"lastScrapeSucceeded":   false,
	"lastScrapeTime":        0,
	"lastScrapeTimedOut":    0,
	"nextAnnounceTime":      0,
	"nextScrapeTime":        0,
	"scrapeState":           2,
}

Functions

This section is empty.

Types

type GetRequest

type GetRequest struct {
	Ids    *json.RawMessage
	Fields []string
}

type JsonMap

type JsonMap map[string]interface{}

type PeerInfo

type PeerInfo struct {
	RateToPeer   int         `json:"rateToPeer"`
	RateToClient int         `json:"rateToClient"`
	Port         int         `json:"port"`
	ClientName   interface{} `json:"clientName"`
	FlagStr      string      `json:"flagStr"`
	Country      interface{} `json:"country"`
	Address      string      `json:"address"`
	Progress     float64     `json:"progress"` //	Torrent progress (percentage/100)
}

type RPCRequest

type RPCRequest struct {
	Method    string
	Tag       *int
	Arguments json.RawMessage
}

type TorrentAddRequest

type TorrentAddRequest struct {
	Cookies           *string      //  pointer to a string of one or more cookies.
	Download_dir      *string      `json:"download-dir"` //    path to download the torrent to
	Filename          *string      //   filename or URL of the .torrent file
	Metainfo          *string      //   base64-encoded .torrent content
	Paused            *interface{} //    if true, don't start the torrent
	Peer_limit        *int         //   maximum number of peers
	BandwidthPriority *int         //   torrent's bandwidth tr_priority_t
	Files_wanted      *[]JsonMap   //   indices of file(s) to download
	Files_unwanted    *[]JsonMap   //    indices of file(s) to not download
	Priority_high     *[]JsonMap   //    indices of high-priority file(s)
	Priority_low      *[]JsonMap   //    indices of low-priority file(s)
	Priority_normal   *[]JsonMap   //    indices of normal-priority file(s)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL