2
0
mirror of synced 2025-02-23 06:08:07 +00:00

Add comments to metainfo.Magnet fields

This commit is contained in:
Matt Joiner 2019-09-24 16:29:29 +10:00
parent 584cdbdc60
commit f0843c30d0

View File

@ -11,10 +11,10 @@ import (
// Magnet link components.
type Magnet struct {
InfoHash Hash
Trackers []string
DisplayName string
Params url.Values
InfoHash Hash // 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.
}
const xtPrefix = "urn:btih:"