Documentation ¶
Index ¶
- type AddPeerRequest
- type AddPeerResponse
- type AddTorrentOptions
- type AddTorrentRequest
- type AddTorrentResponse
- type AddTrackerRequest
- type AddTrackerResponse
- type AddURIRequest
- type AddURIResponse
- type AnnounceTorrentRequest
- type AnnounceTorrentResponse
- type GetMagnetRequest
- type GetMagnetResponse
- type GetSessionStatsRequest
- type GetSessionStatsResponse
- type GetTorrentPeersRequest
- type GetTorrentPeersResponse
- type GetTorrentRequest
- type GetTorrentResponse
- type GetTorrentStatsRequest
- type GetTorrentStatsResponse
- type GetTorrentTrackersRequest
- type GetTorrentTrackersResponse
- type GetTorrentWebseedsRequest
- type GetTorrentWebseedsResponse
- type ListTorrentsRequest
- type ListTorrentsResponse
- type MoveTorrentRequest
- type MoveTorrentResponse
- type Peer
- type RemoveTorrentRequest
- type RemoveTorrentResponse
- type SessionStats
- type StartAllTorrentsRequest
- type StartAllTorrentsResponse
- type StartTorrentRequest
- type StartTorrentResponse
- type Stats
- type StopAllTorrentsRequest
- type StopAllTorrentsResponse
- type StopTorrentRequest
- type StopTorrentResponse
- type Time
- type Torrent
- type Tracker
- type VerifyTorrentRequest
- type VerifyTorrentResponse
- type Webseed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPeerRequest ¶ added in v0.4.0
type AddPeerResponse ¶ added in v0.4.0
type AddPeerResponse struct { }
type AddTorrentOptions ¶ added in v0.8.7
type AddTorrentRequest ¶
type AddTorrentRequest struct { Torrent string AddTorrentOptions }
type AddTorrentResponse ¶
type AddTorrentResponse struct {
Torrent Torrent
}
type AddTrackerRequest ¶ added in v0.4.0
type AddTrackerResponse ¶ added in v0.4.0
type AddTrackerResponse struct { }
type AddURIRequest ¶
type AddURIRequest struct { URI string AddTorrentOptions }
type AddURIResponse ¶
type AddURIResponse struct {
Torrent Torrent
}
type AnnounceTorrentRequest ¶ added in v0.10.0
type AnnounceTorrentRequest struct {
ID string
}
type AnnounceTorrentResponse ¶ added in v0.10.0
type AnnounceTorrentResponse struct { }
type GetMagnetRequest ¶ added in v0.16.0
type GetMagnetRequest struct {
ID string
}
type GetMagnetResponse ¶ added in v0.16.0
type GetMagnetResponse struct {
Magnet string
}
type GetSessionStatsRequest ¶ added in v0.3.0
type GetSessionStatsRequest struct { }
type GetSessionStatsResponse ¶ added in v0.3.0
type GetSessionStatsResponse struct {
Stats SessionStats
}
type GetTorrentPeersRequest ¶
type GetTorrentPeersRequest struct {
ID string
}
type GetTorrentPeersResponse ¶
type GetTorrentPeersResponse struct {
Peers []Peer
}
type GetTorrentRequest ¶ added in v0.16.0
type GetTorrentRequest struct {
ID string
}
type GetTorrentResponse ¶ added in v0.16.0
type GetTorrentResponse struct {
Torrent string
}
type GetTorrentStatsRequest ¶
type GetTorrentStatsRequest struct {
ID string
}
type GetTorrentStatsResponse ¶
type GetTorrentStatsResponse struct {
Stats Stats
}
type GetTorrentTrackersRequest ¶
type GetTorrentTrackersRequest struct {
ID string
}
type GetTorrentTrackersResponse ¶
type GetTorrentTrackersResponse struct {
Trackers []Tracker
}
type GetTorrentWebseedsRequest ¶ added in v0.7.0
type GetTorrentWebseedsRequest struct {
ID string
}
type GetTorrentWebseedsResponse ¶ added in v0.7.0
type GetTorrentWebseedsResponse struct {
Webseeds []Webseed
}
type ListTorrentsRequest ¶
type ListTorrentsRequest struct { }
type ListTorrentsResponse ¶
type ListTorrentsResponse struct {
Torrents []Torrent
}
type MoveTorrentRequest ¶ added in v0.15.0
type MoveTorrentResponse ¶ added in v0.15.0
type MoveTorrentResponse struct { }
type RemoveTorrentRequest ¶
type RemoveTorrentRequest struct {
ID string
}
type RemoveTorrentResponse ¶
type RemoveTorrentResponse struct { }
type SessionStats ¶ added in v0.3.0
type SessionStats struct { Uptime int Torrents int Peers int PortsAvailable int BlockListRules int BlockListRecency int ReadCacheObjects int ReadCacheSize int64 ReadCacheUtilization int ReadsPerSecond int ReadsActive int ReadsPending int WriteCacheObjects int WriteCacheSize int64 WriteCachePendingKeys int WritesPerSecond int WritesActive int WritesPending int SpeedDownload int SpeedUpload int SpeedRead int SpeedWrite int }
type StartAllTorrentsRequest ¶ added in v0.4.0
type StartAllTorrentsRequest struct { }
type StartAllTorrentsResponse ¶ added in v0.4.0
type StartAllTorrentsResponse struct { }
type StartTorrentRequest ¶
type StartTorrentRequest struct {
ID string
}
type StartTorrentResponse ¶
type StartTorrentResponse struct { }
type Stats ¶
type Stats struct { InfoHash string Port int Status string Error *string Pieces struct { Checked uint32 Have uint32 Missing uint32 Available uint32 Total uint32 } Bytes struct { Total int64 Allocated int64 Completed int64 Incomplete int64 Downloaded int64 Uploaded int64 Wasted int64 } Peers struct { Total int Incoming int Outgoing int } Handshakes struct { Total int Incoming int Outgoing int } Addresses struct { Total int Tracker int DHT int PEX int } Downloads struct { Total int Running int Snubbed int Choked int } MetadataDownloads struct { Total int Snubbed int Running int } Name string Private bool PieceLength uint32 SeededFor uint Speed struct { Download int Upload int } ETA *uint }
type StopAllTorrentsRequest ¶ added in v0.4.0
type StopAllTorrentsRequest struct { }
type StopAllTorrentsResponse ¶ added in v0.4.0
type StopAllTorrentsResponse struct { }
type StopTorrentRequest ¶
type StopTorrentRequest struct {
ID string
}
type StopTorrentResponse ¶
type StopTorrentResponse struct { }
type VerifyTorrentRequest ¶ added in v0.10.0
type VerifyTorrentRequest struct {
ID string
}
type VerifyTorrentResponse ¶ added in v0.10.0
type VerifyTorrentResponse struct { }
Click to show internal directories.
Click to hide internal directories.