Documentation ¶
Index ¶
- Constants
- type Torrent
- func (t *Torrent) Birth() mclock.AbsTime
- func (t *Torrent) BytesRequested() int64
- func (t *Torrent) Cited() int32
- func (t *Torrent) CitedDec()
- func (t *Torrent) CitedInc()
- func (t *Torrent) Close()
- func (t *Torrent) Dirty() bool
- func (t *Torrent) InfoHash() string
- func (t *Torrent) IsSeeding() bool
- func (t *Torrent) Leech() error
- func (t *Torrent) Lock()
- func (t *Torrent) Mux() *event.TypeMux
- func (t *Torrent) Pause()
- func (t *Torrent) Paused() bool
- func (t *Torrent) Pending() bool
- func (t *Torrent) QuotaFull() bool
- func (t *Torrent) RLock()
- func (t *Torrent) RUnlock()
- func (t *Torrent) Ready() bool
- func (t *Torrent) Running() bool
- func (t *Torrent) Seed() bool
- func (t *Torrent) SetBytesRequested(bytesRequested int64)
- func (t *Torrent) SetStart(s mclock.AbsTime)
- func (t *Torrent) SetStatus(s int32)
- func (t *Torrent) Spec() *torrent.TorrentSpec
- func (t *Torrent) SpecNoTrackers() *torrent.TorrentSpec
- func (t *Torrent) Start() error
- func (t *Torrent) Status() int
- func (t *Torrent) Stop()
- func (t *Torrent) Stopping() bool
- func (t *Torrent) Trackers() [][]string
- func (t *Torrent) Unlock()
- func (t *Torrent) WriteTorrent() error
- type TorrentEvent
Constants ¶
View Source
const ( TorrentPending = iota + 1 TorrentPaused TorrentRunning TorrentSeeding TorrentStopping )
View Source
const TORRENT = "torrent"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Torrent ¶
func NewTorrent ¶
func (*Torrent) BytesRequested ¶
func (*Torrent) SetBytesRequested ¶
func (*Torrent) Spec ¶
func (t *Torrent) Spec() *torrent.TorrentSpec
func (*Torrent) SpecNoTrackers ¶ added in v1.0.65
func (t *Torrent) SpecNoTrackers() *torrent.TorrentSpec
func (*Torrent) WriteTorrent ¶
type TorrentEvent ¶ added in v1.0.58
type TorrentEvent struct {
S int
}
Click to show internal directories.
Click to hide internal directories.