tracker

package
v0.0.0-...-8e8b4c2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: BSD-3-Clause Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTrackerTorrents

func NewTrackerTorrents() trackerTorrents

func ScrapePattern

func ScrapePattern(announcePattern string) string

func StartTracker

func StartTracker(addr string, torrentFiles []string) (err error)

Start a tracker and run it until interrupted.

Types

type Tracker

type Tracker struct {
	Announce string
	Addr     string
	ID       string
	// contains filtered or unexported fields
}

func NewTracker

func NewTracker() *Tracker

func (*Tracker) ListenAndServe

func (t *Tracker) ListenAndServe() (err error)

func (*Tracker) Quit

func (t *Tracker) Quit() (err error)

func (*Tracker) Register

func (t *Tracker) Register(infoHash, name string) (err error)

func (*Tracker) Unregister

func (t *Tracker) Unregister(infoHash string) (err error)

Jump to

Keyboard shortcuts

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