torrentfile

package
v0.0.0-...-0dcf885 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalDict

func UnmarshalDict(list []interface{}) ([]peers.Peer, error)

Types

type TorrentFile

type TorrentFile struct {
	Announce     string `bencode:"announce"`
	AnnounceList [][]string
	InfoHash     [20]byte
	PieceHashes  [][20]byte
	PieceLength  int
	Length       int
	Name         string
}

func Open

func Open(path string) (TorrentFile, error)

func (*TorrentFile) DownloadToFile

func (t *TorrentFile) DownloadToFile(path string) error

Jump to

Keyboard shortcuts

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