caffe

package
v1.0.62 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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

type Torrent struct {
	*torrent.Torrent
	// contains filtered or unexported fields
}

func NewTorrent

func NewTorrent(t *torrent.Torrent, requested int64, ih string, path string, slot int, spec *torrent.TorrentSpec) *Torrent

func (*Torrent) Birth

func (t *Torrent) Birth() mclock.AbsTime

func (*Torrent) BytesRequested

func (t *Torrent) BytesRequested() int64

func (*Torrent) Cited

func (t *Torrent) Cited() int32

func (*Torrent) CitedDec

func (t *Torrent) CitedDec()

func (*Torrent) CitedInc

func (t *Torrent) CitedInc()

func (*Torrent) Close

func (t *Torrent) Close()

func (*Torrent) InfoHash

func (t *Torrent) InfoHash() string

func (*Torrent) IsSeeding

func (t *Torrent) IsSeeding() bool

func (*Torrent) Leech

func (t *Torrent) Leech() error

func (*Torrent) Lock

func (t *Torrent) Lock()

func (*Torrent) Mux added in v1.0.58

func (t *Torrent) Mux() *event.TypeMux

func (*Torrent) Pause

func (t *Torrent) Pause()

func (*Torrent) Paused

func (t *Torrent) Paused() bool

func (*Torrent) Pending

func (t *Torrent) Pending() bool

func (*Torrent) QuotaFull

func (t *Torrent) QuotaFull() bool

func (*Torrent) RLock

func (t *Torrent) RLock()

func (*Torrent) RUnlock

func (t *Torrent) RUnlock()

func (*Torrent) Ready

func (t *Torrent) Ready() bool

func (*Torrent) Running

func (t *Torrent) Running() bool

func (*Torrent) Seed

func (t *Torrent) Seed() bool

func (*Torrent) SetBytesRequested

func (t *Torrent) SetBytesRequested(bytesRequested int64)

func (*Torrent) SetStart

func (t *Torrent) SetStart(s mclock.AbsTime)

func (*Torrent) SetStatus

func (t *Torrent) SetStatus(s int32)

func (*Torrent) Spec

func (t *Torrent) Spec() *torrent.TorrentSpec

func (*Torrent) Start

func (t *Torrent) Start() error

func (*Torrent) Status

func (t *Torrent) Status() int

func (*Torrent) Stop

func (t *Torrent) Stop()

func (*Torrent) Stopping

func (t *Torrent) Stopping() bool

func (*Torrent) Unlock

func (t *Torrent) Unlock()

func (*Torrent) WriteTorrent

func (t *Torrent) WriteTorrent() error

type TorrentEvent added in v1.0.58

type TorrentEvent struct {
	S int
}

Jump to

Keyboard shortcuts

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