Add comments to metainfo.Magnet fields
This commit is contained in:
parent
584cdbdc60
commit
f0843c30d0
|
@ -11,10 +11,10 @@ import (
|
||||||
|
|
||||||
// Magnet link components.
|
// Magnet link components.
|
||||||
type Magnet struct {
|
type Magnet struct {
|
||||||
InfoHash Hash
|
InfoHash Hash // Expected in this implementation
|
||||||
Trackers []string
|
Trackers []string // "tr" values
|
||||||
DisplayName string
|
DisplayName string // "dn" value, if not empty
|
||||||
Params url.Values
|
Params url.Values // All other values, such as "x.pe", "as", "xs" etc.
|
||||||
}
|
}
|
||||||
|
|
||||||
const xtPrefix = "urn:btih:"
|
const xtPrefix = "urn:btih:"
|
||||||
|
|
Loading…
Reference in New Issue