queue

package
v0.0.0-...-04f6069 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(hash string) error

Add a torrent by its hash to the queue

func Done

func Done(hash string)

Done indicates that the hash is complete, and Queue can start the next hash. If and only Queue is currently holding the passed hash.

func ForceNext

func ForceNext(hash string)

ForceNext a hash to the front of the queue. Since this immediately means the torrent becomes active it is not stored within the database.

func Next

func Next() string

Next returns the next queued hash (blocking)

func Remove

func Remove(hash string) error

Remove a hash from the queue

func Run

func Run(maxActive int)

Run polls the database, the forced hash or oldest hash is the first to go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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