metawire

package
v0.0.0-...-e0770a4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExtHeader    = errors.New("metawire: invalid extention header response")
	ErrInvalidPiece = errors.New("metawire: invalid piece response")
	ErrTimeout      = errors.New("metawire: time out")
)

Functions

func Dialer

func Dialer(dialer net.Dialer) option

func Timeout

func Timeout(t time.Duration) option

Types

type Wire

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

func New

func New(infohash string, from string, options ...option) *Wire

func (*Wire) Fetch

func (w *Wire) Fetch() ([]byte, error)

Jump to

Keyboard shortcuts

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