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
1 changed files with 4 additions and 4 deletions

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:"