]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add comments to metainfo.Magnet fields
authorMatt Joiner <anacrolix@gmail.com>
Tue, 24 Sep 2019 06:29:29 +0000 (16:29 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 24 Sep 2019 06:29:29 +0000 (16:29 +1000)
metainfo/magnet.go

index 1a16057d673e5b35879a38b5777c6582c716b46f..9fd15c6b14dbed319c7affcf8617d86e014f080f 100644 (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:"