]> Sergey Matveev's repositories - btrtrc.git/blobdiff - metainfo/metainfo.go
add BEP references to documentation of the metadata fields
[btrtrc.git] / metainfo / metainfo.go
index 9f628fe0bda1dd50a6f8920789f0e87358d0b6af..5e84b012259464e8aeb3f989830fa662e6c503c6 100644 (file)
@@ -9,15 +9,15 @@ import (
 )
 
 type MetaInfo struct {
-       InfoBytes    bencode.Bytes `bencode:"info,omitempty"`
-       Announce     string        `bencode:"announce,omitempty"`
-       AnnounceList AnnounceList  `bencode:"announce-list,omitempty"`
-       Nodes        []Node        `bencode:"nodes,omitempty"`
+       InfoBytes    bencode.Bytes `bencode:"info,omitempty"`          // BEP 3
+       Announce     string        `bencode:"announce,omitempty"`      // BEP 3
+       AnnounceList AnnounceList  `bencode:"announce-list,omitempty"` // BEP 12
+       Nodes        []Node        `bencode:"nodes,omitempty"`         // BEP 5
        CreationDate int64         `bencode:"creation date,omitempty,ignore_unmarshal_type_error"`
        Comment      string        `bencode:"comment,omitempty"`
        CreatedBy    string        `bencode:"created by,omitempty"`
        Encoding     string        `bencode:"encoding,omitempty"`
-       UrlList      UrlList       `bencode:"url-list,omitempty"`
+       UrlList      UrlList       `bencode:"url-list,omitempty"` // BEP 19
 }
 
 // Load a MetaInfo from an io.Reader. Returns a non-nil error in case of