Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Torrent ¶
type Torrent struct { InfoHash [20]byte // hash of the info field (used as torrent ID) Announce string // announce URL, for the tracker CreationDate int64 `mapstructure:"creation date"` CreatedBy string `mapstructure:"created by"` Comment string // contains filtered or unexported fields }
Torrent metainfo structure, parsed from .torrent files
func ParseTorrent ¶
Parse metainfo structure from the contents of a standard torrent file
type TrackerResponse ¶
type TrackerResponse struct { Peers string // connected peers in a compact model // contains filtered or unexported fields }
func ParseTrackerResponse ¶
func ParseTrackerResponse(responseContents []byte) (*TrackerResponse, error)
Click to show internal directories.
Click to hide internal directories.