Documentation ¶
Index ¶
- type Torrent
- func (t *Torrent) AddToDownloaded(bytes uint64)
- func (t *Torrent) AddToUploaded(bytes uint64)
- func (t *Torrent) Downloaded() uint64
- func (t *Torrent) GetMetaInfo() *metainfo.Metainfo
- func (t *Torrent) Left() uint64
- func (t *Torrent) RequestPeers()
- func (t *Torrent) ResetDownloaded()
- func (t *Torrent) ResetUploaded()
- func (t *Torrent) Uploaded() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Torrent ¶
type Torrent struct {
// contains filtered or unexported fields
}
func NewTorrent ¶
func NewTorrent(mi *metainfo.Metainfo, cc *config.ClientConfig) *Torrent
func (*Torrent) AddToDownloaded ¶
func (*Torrent) AddToUploaded ¶
func (*Torrent) Downloaded ¶
func (*Torrent) GetMetaInfo ¶
func (*Torrent) RequestPeers ¶
func (t *Torrent) RequestPeers()
func (*Torrent) ResetDownloaded ¶
func (t *Torrent) ResetDownloaded()
func (*Torrent) ResetUploaded ¶
func (t *Torrent) ResetUploaded()
Click to show internal directories.
Click to hide internal directories.