udptracker

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(bl *blocklist.Blocklist) *Transport

func (*Transport) Close

func (t *Transport) Close() error

Close the tracker connection.

func (*Transport) Do

func (t *Transport) Do(ctx context.Context, trx *transaction) ([]byte, error)

type UDPTracker

type UDPTracker struct {
	// contains filtered or unexported fields
}

func New

func New(rawURL string, u *url.URL, t *Transport) *UDPTracker

func (*UDPTracker) Announce

func (*UDPTracker) URL

func (t *UDPTracker) URL() string

Jump to

Keyboard shortcuts

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