Documentation
¶
Index ¶
Constants ¶
View Source
const Size = 20
Variables ¶
View Source
var ParseMagnetURI = ParseMagnetUri
Deprecated: Use ParseMagnetUri.
Functions ¶
This section is empty.
Types ¶
type Magnet ¶
type Magnet struct { InfoHash T // Expected in this implementation Trackers []string // "tr" values DisplayName string // "dn" value, if not empty Params url.Values // All other values, such as "x.pe", "as", "xs" etc. }
Magnet link components.
func ParseMagnetUri ¶
ParseMagnetUri parses Magnet-formatted URIs into a Magnet instance
type T ¶
20-byte SHA1 hash used for info and pieces.
func FromHexString ¶
func (*T) FromHexString ¶
func (T) MarshalText ¶
func (*T) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.