cytracker

package module
v0.0.0-...-45c47ef Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2014 License: BSD-3-Clause Imports: 16 Imported by: 1

README

cytracker

CyberTracker - bittorent tracker

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

NewTracker initializes new tracker structure and returns pointer to it

func (*Tracker) ListenAndServe

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

ListenAndServer starts to listen on specified port and blocking until end of operation

func (*Tracker) Quit

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

Quit stops tracker operation

func (*Tracker) Register

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

func (*Tracker) Unregister

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

type Values

type Values struct {
	url.Values
}

func (Values) GetBool

func (v Values) GetBool(key string) (b bool, err error)

func (Values) GetInt

func (v Values) GetInt(key string) (i int, err error)

func (Values) GetUint64

func (v Values) GetUint64(key string) (i uint64, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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